You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/09/21 15:46:33 UTC

[mynewt-nimble] branch master updated: nimble/phy/nrf5x: Enable LNA on "start now" rx

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d7ae1bc nimble/phy/nrf5x: Enable LNA on "start now" rx
0d7ae1bc is described below

commit 0d7ae1bc1819e740adcbaf04c65895cdf97fb209
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Sep 21 14:01:04 2022 +0200

    nimble/phy/nrf5x: Enable LNA on "start now" rx
    
    LNA was not enabled properly if RX was started "now".
---
 nimble/drivers/nrf5x/src/ble_phy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nimble/drivers/nrf5x/src/ble_phy.c b/nimble/drivers/nrf5x/src/ble_phy.c
index 5108c456..dc996156 100644
--- a/nimble/drivers/nrf5x/src/ble_phy.c
+++ b/nimble/drivers/nrf5x/src/ble_phy.c
@@ -786,6 +786,10 @@ ble_phy_set_start_now(void)
     nrf_rtc_cc_set(NRF_RTC0, 0, now + 3);
     nrf_rtc_event_enable(NRF_RTC0, RTC_EVTENSET_COMPARE0_Msk);
 
+#if PHY_USE_FEM_LNA
+    phy_fem_enable_lna();
+#endif
+
     /* Enable PPI */
     phy_ppi_rtc0_compare0_to_timer0_start_enable();