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/12/13 19:02:32 UTC

[mynewt-nimble] 02/02: nimble/phy: Fix nrf5x build with PA or LNA disabled on nRF53

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

commit 4e7dcde6f339be027caec6aabea90a0d3d9a0cac
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Nov 28 14:56:13 2022 +0100

    nimble/phy: Fix nrf5x build with PA or LNA disabled on nRF53
---
 nimble/drivers/nrf5x/src/nrf53/phy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nimble/drivers/nrf5x/src/nrf53/phy.c b/nimble/drivers/nrf5x/src/nrf53/phy.c
index 0d9ab1a7..83104065 100644
--- a/nimble/drivers/nrf5x/src/nrf53/phy.c
+++ b/nimble/drivers/nrf5x/src/nrf53/phy.c
@@ -112,6 +112,7 @@ phy_fem_init()
     NRF_DPPIC->CHENSET = DPPI_CH_MASK_FEM;
 }
 
+#if PHY_USE_FEM_PA
 void
 phy_fem_enable_pa(void)
 {
@@ -125,7 +126,9 @@ phy_fem_enable_pa(void)
         DPPI_CH_SUB(TIMER0_EVENTS_COMPARE_2);
 #endif
 }
+#endif
 
+#if PHY_USE_FEM_LNA
 void
 phy_fem_enable_lna(void)
 {
@@ -139,6 +142,7 @@ phy_fem_enable_lna(void)
         DPPI_CH_SUB(TIMER0_EVENTS_COMPARE_2);
 #endif
 }
+#endif
 
 void
 phy_fem_disable(void)