Skip to content

Commit

Permalink
Merge pull request #15503 from hallard/nordic_rak4630
Browse files Browse the repository at this point in the history
RAK4630 LoRaWAN Allow change TCXO control adding it as a parameter
  • Loading branch information
0xc0170 authored Apr 23, 2024
2 parents 8502c74 + 61522fb commit 98853ac
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 98853ac

Please sign in to comment.