Skip to content
Permalink
Browse files

bluetooth: controller: hal: Correct the bit mask of used PPI channels

This is a follow up to commit 0eaa5e5.

`HAL_SW_SWITCH_RADIO_ENABLE_S2_PPI_BASE` is a base number for two PPI
channels, so two bits need to be marked in the used channel bit mask.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
  • Loading branch information...
anangl authored and carlescufi committed May 7, 2019
1 parent 5506a4d commit 9a5cb2280e7276ed59dc6bd8a79bf23363088f1e
Showing with 1 addition and 0 deletions.
  1. +1 −0 subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_ppi.h
@@ -480,6 +480,7 @@ static inline void hal_radio_rxen_on_sw_switch(u8_t ppi)
#if defined(HAL_SW_SWITCH_RADIO_ENABLE_S2_PPI_BASE)
#define HAL_USED_PPI_CHANNELS_5 \
(BIT(HAL_SW_SWITCH_RADIO_ENABLE_S2_PPI_BASE) | \
BIT(HAL_SW_SWITCH_RADIO_ENABLE_S2_PPI_BASE+1) | \
BIT(HAL_SW_SWITCH_TIMER_S8_DISABLE_PPI))
#else
#define HAL_USED_PPI_CHANNELS_5 0

0 comments on commit 9a5cb22

Please sign in to comment.
You can’t perform that action at this time.