Skip to content

Commit 5a3f412

Browse files
committed
variants(WL): add dedicated LoRaWAN definitions
used by STM32LoRaWan library stm32duino/STM32LoRaWAN#8 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6e55075 commit 5a3f412

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_GENERIC_NODE_SE_TTI.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@
145145
#define HAL_DAC_MODULE_ENABLED
146146
#endif
147147

148+
// LoRaWAN definitions
149+
#define LORAWAN_BOARD_HAS_TCXO 1U
150+
151+
// FE_CTRL1 PA0
152+
// FE_CTRL2 PA1
153+
// FE_CTRL3 PB8
154+
#define LORAWAN_RFSWITCH_PINS PA0,PA1,PB8
155+
#define LORAWAN_RFSWITCH_PIN_COUNT 3
156+
#define LORAWAN_RFSWITCH_OFF_VALUES LOW,LOW,LOW
157+
#define LORAWAN_RFSWITCH_RX_VALUES HIGH,LOW,HIGH
158+
#define LORAWAN_RFSWITCH_RFO_LP_VALUES HIGH,HIGH,HIGH
159+
#define LORAWAN_RFSWITCH_RFO_HP_VALUES LOW,HIGH,HIGH
160+
148161
/*----------------------------------------------------------------------------
149162
* Arduino objects - C++ only
150163
*----------------------------------------------------------------------------*/

variants/STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I/variant_NUCLEO_WL55JC1.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@
148148
#define HAL_DAC_MODULE_ENABLED
149149
#endif
150150

151+
// LoRaWAN definitions
152+
#define LORAWAN_BOARD_HAS_TCXO 1U
153+
154+
#define LORAWAN_RFSWITCH_PINS PC3,PC4,PC5
155+
#define LORAWAN_RFSWITCH_PIN_COUNT 3
156+
#define LORAWAN_RFSWITCH_OFF_VALUES LOW,LOW,LOW
157+
#define LORAWAN_RFSWITCH_RX_VALUES HIGH,HIGH,LOW
158+
#define LORAWAN_RFSWITCH_RFO_LP_VALUES HIGH,HIGH,HIGH
159+
#define LORAWAN_RFSWITCH_RFO_HP_VALUES HIGH,LOW,HIGH
160+
151161
/*----------------------------------------------------------------------------
152162
* Arduino objects - C++ only
153163
*----------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy