Skip to content

Commit

Permalink
nimble/fem: Reset SKY66112 to defaults on HCI reset
Browse files Browse the repository at this point in the history
Make sure we set all configuration to defaults when HCI reset is
issued.
  • Loading branch information
sjanc committed Oct 6, 2022
1 parent 18203cc commit 801484e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nimble/drivers/fem/sky66112/src/sky66112.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ sky66112_bypass(uint8_t enabled)
void
ble_fem_pa_init(void)
{
/* Nothing to do here */
sky66112_tx_hp_mode(MYNEWT_VAL(SKY66112_TX_HP_MODE));
sky66112_tx_bypass(0);
#if MYNEWT_VAL(BLE_FEM_ANTENNA)
ble_fem_antenna(MYNEWT_VAL(SKY66112_ANTENNA_PORT));
#endif
}

void
Expand All @@ -65,7 +69,10 @@ ble_fem_pa_disable(void)
void
ble_fem_lna_init(void)
{
/* Nothing to do here */
sky66112_rx_bypass(0);
#if MYNEWT_VAL(BLE_FEM_ANTENNA)
ble_fem_antenna(MYNEWT_VAL(SKY66112_ANTENNA_PORT));
#endif
}

void
Expand Down

0 comments on commit 801484e

Please sign in to comment.