Skip to content

Commit

Permalink
Allow custom TCXO control parameter
Browse files Browse the repository at this point in the history
Allow custom TCXO control parameter
  • Loading branch information
hallard committed Apr 4, 2024
1 parent baf6a30 commit 61522fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 4 additions & 0 deletions connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 61522fb

Please sign in to comment.