1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/lora-e5-dev: set tx_pa_mode to HPA

This commit is contained in:
Francisco Molina 2021-11-04 21:55:13 +01:00
parent e17e3254e1
commit 002df1c5c2
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* @}
*/
#include <assert.h>
#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;
}
}

View File

@ -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