Skip to content

Add support for RAK3172 module #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions src/BSP/radio_board_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@

// Is a TCXO present on the board?
#if !defined(LORAWAN_BOARD_HAS_TCXO)
#define LORAWAN_BOARD_HAS_TCXO 1U
#if defined(ARDUINO_NUCLEO_WL55JC1)
#define LORAWAN_BOARD_HAS_TCXO 1U

#elif defined(ARDUINO_GENERIC_WLE5CCUX)
#define LORAWAN_BOARD_HAS_TCXO 0U
#endif
#endif

// Is circuitry for DCDC (SMPS) mode present on the board?
Expand All @@ -72,12 +77,21 @@
#endif

#if !defined(LORAWAN_RFSWITCH_PINS)
#define LORAWAN_RFSWITCH_PINS PC3,PC4,PC5
#define LORAWAN_RFSWITCH_PIN_COUNT 3
#define LORAWAN_RFSWITCH_OFF_VALUES LOW,LOW,LOW
#define LORAWAN_RFSWITCH_RX_VALUES HIGH,HIGH,LOW
#define LORAWAN_RFSWITCH_RFO_LP_VALUES HIGH,HIGH,HIGH
#define LORAWAN_RFSWITCH_RFO_HP_VALUES HIGH,LOW,HIGH
#if defined(ARDUINO_NUCLEO_WL55JC1)
#define LORAWAN_RFSWITCH_PINS PC3, PC4, PC5
#define LORAWAN_RFSWITCH_PIN_COUNT 3
#define LORAWAN_RFSWITCH_OFF_VALUES LOW, LOW, LOW
#define LORAWAN_RFSWITCH_RX_VALUES HIGH, HIGH, LOW
#define LORAWAN_RFSWITCH_RFO_LP_VALUES HIGH, HIGH, HIGH
#define LORAWAN_RFSWITCH_RFO_HP_VALUES HIGH, LOW, HIGH
#elif defined(ARDUINO_GENERIC_WLE5CCUX)
#define LORAWAN_RFSWITCH_PINS PB8, PC13
#define LORAWAN_RFSWITCH_PIN_COUNT 2
#define LORAWAN_RFSWITCH_OFF_VALUES LOW, LOW
#define LORAWAN_RFSWITCH_RX_VALUES HIGH, LOW
#define LORAWAN_RFSWITCH_RFO_LP_VALUES LOW, HIGH
#define LORAWAN_RFSWITCH_RFO_HP_VALUES LOW, HIGH
#endif
#endif

/* Static variables --------------------------------------------------------*/
Expand Down