diff --git a/boards/lora-e5-dev/board.c b/boards/lora-e5-dev/board.c index 0beee8e19a..b3a9421aad 100644 --- a/boards/lora-e5-dev/board.c +++ b/boards/lora-e5-dev/board.c @@ -18,6 +18,7 @@ * @} */ +#include #include "kernel_defines.h" #include "cpu.h" #include "board.h" @@ -72,6 +73,8 @@ void lora_e5_dev_sx126x_set_rf_mode(sx126x_t *dev, sx126x_rf_mode_t rf_mode) gpio_set(FE_CTRL2); break; default: + /* SX126X_RF_MODE_TX_LPA is not supported */ + assert(0); break; } } diff --git a/boards/lora-e5-dev/include/board.h b/boards/lora-e5-dev/include/board.h index dc5d8efd62..5e18636b6a 100644 --- a/boards/lora-e5-dev/include/board.h +++ b/boards/lora-e5-dev/include/board.h @@ -34,6 +34,7 @@ extern "C" { * @{ */ #define SX126X_PARAM_SPI (SPI_DEV(0)) +#define SX126X_PARAM_TX_PA_MODE SX126X_RF_MODE_TX_HPA #if IS_USED(MODULE_SX126X_STM32WL) extern void lora_e5_dev_sx126x_set_rf_mode(sx126x_t *dev, sx126x_rf_mode_t rf_mode); #define SX126X_PARAM_SET_RF_MODE_CB lora_e5_dev_sx126x_set_rf_mode