mirror of https://github.com/ARMmbed/mbed-os.git
Allow custom TCXO control parameter
Allow custom TCXO control parameterpull/15503/head
parent
baf6a3022a
commit
61522fb297
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue