Skip to content

Commit 61522fb

Browse files
committed
Allow custom TCXO control parameter
Allow custom TCXO control parameter
1 parent baf6a30 commit 61522fb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

connectivity/drivers/lora/COMPONENT_SX126X/SX126X_LoRaRadio.cpp

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 0 deletions
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)