Skip to content

Commit 7baae39

Browse files
committed
STM32WL LORA : enable connectivity test
1 parent 0805083 commit 7baae39

File tree

1 file changed

+8
-0
lines changed
  • connectivity/lorawan/tests/TESTS/lorawan/loraradio

1 file changed

+8
-0
lines changed

connectivity/lorawan/tests/TESTS/lorawan/loraradio/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#include "SX1276_LoRaRadio.h"
3333
#elif COMPONENT_SX126X
3434
#include "SX126X_LoRaRadio.h"
35+
#elif (TARGET_STM32WL)
36+
#include "STM32WL_LoRaRadio.h"
3537
#else
3638
#error [NOT_SUPPORTED] Lora radio is not configured
3739
#endif
@@ -197,6 +199,8 @@ utest::v1::status_t case_setup_handler(const Case *const source, const size_t in
197199
radio = new SX1276_LoRaRadio();
198200
#elif COMPONENT_SX126X
199201
radio = new SX126X_LoRaRadio();
202+
#elif (TARGET_STM32WL)
203+
radio = new STM32WL_LoRaRadio();
200204
#endif
201205

202206
TEST_ASSERT(radio);
@@ -218,6 +222,10 @@ utest::v1::status_t case_teardown_handler(const Case *const source, const size_t
218222

219223
#elif COMPONENT_SX126X
220224
delete static_cast<SX126X_LoRaRadio *>(radio);
225+
226+
#elif TARGET_STM32WL
227+
delete static_cast<STM32WL_LoRaRadio *>(radio);
228+
221229
#endif
222230
radio = NULL;
223231

0 commit comments

Comments
 (0)