Skip to content

Commit

Permalink
Enable LNA for Antenna 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Nov 5, 2024
1 parent a0e5e0c commit 0779bf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions software/firmware/src/peripherals/src/ranging.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,17 @@ void ranging_radio_choose_antenna(uint8_t antenna_number)
switch (antenna_number)
{
case 0:
dwt_setlnapamode(DWT_LNA_ENABLE);
am_hal_gpio_output_clear(PIN_RADIO_ANTENNA_SELECT1);
am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT2);
break;
case 1:
dwt_setlnapamode(DWT_LNA_PA_DISABLE);
am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT1);
am_hal_gpio_output_clear(PIN_RADIO_ANTENNA_SELECT2);
break;
case 2:
dwt_setlnapamode(DWT_LNA_PA_DISABLE);
am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT1);
am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT2);
break;
Expand Down

0 comments on commit 0779bf0

Please sign in to comment.