Skip to content

Commit 98853ac

Browse files
authored
Merge pull request #15503 from hallard/nordic_rak4630
RAK4630 LoRaWAN Allow change TCXO control adding it as a parameter
2 parents 8502c74 + 61522fb commit 98853ac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ void SX126X_LoRaRadio::cold_start_wakeup()
437437
if (MBED_CONF_SX126X_LORA_DRIVER_XTAL == 0) {
438438
#endif
439439
caliberation_params_t calib_param;
440-
set_dio3_as_tcxo_ctrl(TCXO_CTRL_1_7V, 320); //5 ms
440+
set_dio3_as_tcxo_ctrl(MBED_CONF_SX126X_LORA_DRIVER_TCXO_CTRL, 320); //5 ms
441441
calib_param.value = 0x7F;
442442
write_opmode_command(RADIO_CALIBRATE, &calib_param.value, 1);
443443
}

connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
"help": "Default: -1 = use crystal-select, TXCO = 0, XTAL = 1",
3939
"value": -1
4040
},
41+
"tcxo-ctrl": {
42+
"help": "TCXO Control voltage. Default: TCXO control TCXO_CTRL_1_7V (RAK4630 use TCXO_CTRL_3_0V)",
43+
"value": "TCXO_CTRL_1_7V"
44+
},
4145
"spi-mosi": {
4246
"value": "NC"
4347
},

0 commit comments

Comments
 (0)