diff --git a/connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp b/connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp index 5c3b29f32ad..cc36c71839c 100644 --- a/connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp +++ b/connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp @@ -437,7 +437,7 @@ void SX126X_LoRaRadio::cold_start_wakeup() if (MBED_CONF_SX126X_LORA_DRIVER_XTAL == 0) { #endif caliberation_params_t calib_param; - set_dio3_as_tcxo_ctrl(TCXO_CTRL_1_7V, 320); //5 ms + set_dio3_as_tcxo_ctrl(MBED_CONF_SX126X_LORA_DRIVER_TCXO_CTRL, 320); //5 ms calib_param.value = 0x7F; write_opmode_command(RADIO_CALIBRATE, &calib_param.value, 1); } diff --git a/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json b/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json index 6fcdf16f05b..5e068ea0525 100644 --- a/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json +++ b/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json @@ -38,6 +38,10 @@ "help": "Default: -1 = use crystal-select, TXCO = 0, XTAL = 1", "value": -1 }, + "tcxo-ctrl": { + "help": "TCXO Control voltage. Default: TCXO control TCXO_CTRL_1_7V (RAK4630 use TCXO_CTRL_3_0V)", + "value": "TCXO_CTRL_1_7V" + }, "spi-mosi": { "value": "NC" },