Skip to content

Commit f155780

Browse files
aescolarcarlescufi
authored andcommitted
Bluetooth controller nrf: ifdef some coded phy only code
To avoid a build error when coded phy is not enabled for a nrf53: These three functions are only used for coded phy, and depend on macros which are only defined if coded phy is enabled. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
1 parent bab4ed1 commit f155780

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ static inline void hal_radio_sw_switch_cleanup(void)
551551
nrf_dppi_group_disable(NRF_DPPIC, SW_SWITCH_TIMER_TASK_GROUP(1));
552552
}
553553

554+
#if defined(CONFIG_BT_CTLR_PHY_CODED)
554555
static inline void hal_radio_sw_switch_coded_tx_config_set(uint8_t ppi_en,
555556
uint8_t ppi_dis, uint8_t cc_s2, uint8_t group_index)
556557
{
@@ -612,6 +613,7 @@ static inline void hal_radio_sw_switch_disable_group_clear(uint8_t ppi_dis, uint
612613
HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_TASK(
613614
ppi_dis);
614615
}
616+
#endif /* defined(CONFIG_BT_CTLR_PHY_CODED) */
615617

616618
static inline void hal_radio_sw_switch_ppi_group_setup(void)
617619
{

0 commit comments

Comments
 (0)