From f754ee4aa8b4850fa85d32e8a8b1e15abe8ba107 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 12 Sep 2019 11:33:52 +0200 Subject: [PATCH] bluetooth: controller: conditionally define macros for LE Coded PHY Make the definitions of LE Coded PHY-specific macros and inline functions conditional, i.e. only if we actually build the controller with support for LE Coded PHY. Signed-off-by: Ioannis Glaropoulos --- .../controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h index 84542dc7a3b..33ba189a059 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h @@ -444,7 +444,7 @@ static inline void hal_radio_sw_switch_disable(void) BIT(HAL_SW_SWITCH_GROUP_TASK_ENABLE_PPI)); } -#if defined(CONFIG_SOC_NRF52840) +#if defined(CONFIG_BT_CTLR_PHY_CODED) && defined(CONFIG_SOC_NRF52840) /* The 2 adjacent TIMER EVENTS_COMPARE event offsets used for implementing * SW_SWITCH_TIMER-based auto-switch for TIFS, when receiving in LE Coded PHY. * 'index' must be 0 or 1.