hdl: nios: devices_rfic: implement missing frequency reset in standby
oops
This commit is contained in:
parent
b8d8667722
commit
18e79836bd
1 changed files with 10 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ static bool _rfic_initialize()
|
|||
|
||||
static bool _rfic_standby()
|
||||
{
|
||||
AD9361_InitParam *init_param = &bladerf2_rfic_init_params;
|
||||
size_t i;
|
||||
bladerf_direction dir;
|
||||
|
||||
|
|
@ -233,6 +234,15 @@ static bool _rfic_standby()
|
|||
FOR_EACH_DIRECTION(dir)
|
||||
{
|
||||
if (state.frequency_invalid[dir]) {
|
||||
if (BLADERF_TX == dir) {
|
||||
CHECK_BOOL(_rfic_cmd_wr_frequency(
|
||||
BLADERF_CHANNEL_TX(0),
|
||||
init_param->tx_synthesizer_frequency_hz));
|
||||
} else {
|
||||
CHECK_BOOL(_rfic_cmd_wr_frequency(
|
||||
BLADERF_CHANNEL_RX(0),
|
||||
init_param->rx_synthesizer_frequency_hz));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue