mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
PipX HW Def: Use PIOS_BOARD_HW_DEFS_GetRfm22Cfg since the radio module initializes the modem
and doesn't know teh difference between RM2 and PipX
This commit is contained in:
parent
71e1a14e93
commit
0c8c148b51
@ -219,7 +219,7 @@ static const struct pios_exti_cfg pios_exti_rfm22b_cfg __exti_config = {
|
||||
|
||||
#include <pios_rfm22b_priv.h>
|
||||
|
||||
struct pios_rfm22b_cfg pios_rfm22b_cfg = {
|
||||
struct pios_rfm22b_cfg pios_rfm22b_pipx_cfg = {
|
||||
.spi_cfg = &pios_spi_rfm22b_cfg,
|
||||
.exti_cfg = &pios_exti_rfm22b_cfg,
|
||||
.frequencyHz = 434000000,
|
||||
@ -232,6 +232,12 @@ struct pios_rfm22b_cfg pios_rfm22b_cfg = {
|
||||
.gpio_direction = GPIO0_TX_GPIO1_RX,
|
||||
};
|
||||
|
||||
//! Compatibility layer for various hardware revisions
|
||||
const struct pios_rfm22b_cfg * PIOS_BOARD_HW_DEFS_GetRfm22Cfg (uint32_t board_revision)
|
||||
{
|
||||
return &pios_rfm22b_pipx_cfg;
|
||||
}
|
||||
|
||||
#endif /* PIOS_INCLUDE_RFM22B */
|
||||
|
||||
#if defined(PIOS_INCLUDE_ADC)
|
||||
|
Loading…
Reference in New Issue
Block a user