Skip to content

Commit 0772890

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Adjust DPPI used for nRF53x
Adjust the PPI used by nRF53x so that DPPI 0-4 available for application's use. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent f97d129 commit 0772890

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static inline void hal_radio_nrf_ppi_channels_disable(uint32_t mask)
2828
* Enable Radio on Event Timer tick:
2929
* wire the EVENT_TIMER EVENTS_COMPARE[0] event to RADIO TASKS_TXEN/RXEN task.
3030
*/
31-
#define HAL_RADIO_ENABLE_ON_TICK_PPI 0
31+
#define HAL_RADIO_ENABLE_ON_TICK_PPI 6
3232
#define HAL_RADIO_ENABLE_TX_ON_TICK_PPI HAL_RADIO_ENABLE_ON_TICK_PPI
3333
#define HAL_RADIO_ENABLE_RX_ON_TICK_PPI HAL_RADIO_ENABLE_ON_TICK_PPI
3434

@@ -63,7 +63,7 @@ static inline void hal_radio_enable_on_tick_ppi_config_and_enable(uint8_t trx)
6363
* wire the RADIO EVENTS_ADDRESS event to the
6464
* EVENT_TIMER TASKS_CAPTURE[<address timer>] task.
6565
*/
66-
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 3
66+
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 9
6767

6868
static inline void hal_radio_recv_timeout_cancel_ppi_config(void)
6969
{
@@ -78,7 +78,7 @@ static inline void hal_radio_recv_timeout_cancel_ppi_config(void)
7878
* wire the EVENT_TIMER EVENTS_COMPARE[<HCTO timer>] event
7979
* to the RADIO TASKS_DISABLE task.
8080
*/
81-
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 4
81+
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 10
8282

8383
static inline void hal_radio_disable_on_hcto_ppi_config(void)
8484
{
@@ -93,7 +93,7 @@ static inline void hal_radio_disable_on_hcto_ppi_config(void)
9393
* wire the RADIO EVENTS_END event to the
9494
* EVENT_TIMER TASKS_CAPTURE[<radio end timer>] task.
9595
*/
96-
#define HAL_RADIO_END_TIME_CAPTURE_PPI 5
96+
#define HAL_RADIO_END_TIME_CAPTURE_PPI 11
9797

9898
static inline void hal_radio_end_time_capture_ppi_config(void)
9999
{
@@ -106,7 +106,7 @@ static inline void hal_radio_end_time_capture_ppi_config(void)
106106
* Start event timer on RTC tick:
107107
* wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task.
108108
*/
109-
#define HAL_EVENT_TIMER_START_PPI 1
109+
#define HAL_EVENT_TIMER_START_PPI 7
110110

111111
static inline void hal_event_timer_start_ppi_config(void)
112112
{
@@ -119,7 +119,7 @@ static inline void hal_event_timer_start_ppi_config(void)
119119
* wire the RADIO EVENTS_READY event to the
120120
* EVENT_TIMER TASKS_CAPTURE[<radio ready timer>] task.
121121
*/
122-
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 2
122+
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 8
123123

124124
static inline void hal_radio_ready_time_capture_ppi_config(void)
125125
{
@@ -149,7 +149,7 @@ static inline void hal_trigger_crypt_ppi_config(void)
149149
* Trigger automatic address resolution on Bit counter match:
150150
* wire the RADIO EVENTS_BCMATCH event to the AAR TASKS_START task.
151151
*/
152-
#define HAL_TRIGGER_AAR_PPI 6
152+
#define HAL_TRIGGER_AAR_PPI 12
153153

154154
static inline void hal_trigger_aar_ppi_config(void)
155155
{
@@ -211,7 +211,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
211211
* 2 adjacent PPIs (8 & 9) and 2 adjacent PPI groups are used for this wiring;
212212
* <index> must be 0 or 1. <offset> must be a valid TIMER CC register offset.
213213
*/
214-
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE 8
214+
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE 14
215215
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI(index) \
216216
(HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE + index)
217217

@@ -266,7 +266,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
266266
* We use the same PPI for the alternative SW Switch Timer compare
267267
* event.
268268
*/
269-
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE 8
269+
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE 14
270270
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI(index) \
271271
(HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE + index)
272272

0 commit comments

Comments
 (0)