Skip to content

Commit 031a17c

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: Align DDPI usage with nRF54L power domains
Align DDPI usage with nRF54L series power domains and available DDPI configurations. Use indices below 4 when needing to bridge with GPIO, use indices below 8 when needing to bridge with MCU domain like CCM and AAR; and use indices above 7 to bridge with Peripheral domain. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 439cd0b commit 031a17c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@
88
* Enable Radio on Event Timer tick:
99
* wire the EVENT_TIMER EVENTS_COMPARE[0] event to RADIO TASKS_TXEN/RXEN task.
1010
*/
11-
#define HAL_RADIO_ENABLE_TX_ON_TICK_PPI 6
12-
#define HAL_RADIO_ENABLE_RX_ON_TICK_PPI 6
11+
#define HAL_RADIO_ENABLE_TX_ON_TICK_PPI 9
12+
#define HAL_RADIO_ENABLE_RX_ON_TICK_PPI 9
1313

1414
/*******************************************************************************
1515
* Capture event timer on Address reception:
1616
* wire the RADIO EVENTS_ADDRESS event to the
1717
* EVENT_TIMER TASKS_CAPTURE[<address timer>] task.
1818
*/
19-
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 9
19+
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 11
2020

2121
/*******************************************************************************
2222
* Disable Radio on HCTO:
2323
* wire the EVENT_TIMER EVENTS_COMPARE[<HCTO timer>] event
2424
* to the RADIO TASKS_DISABLE task.
2525
*/
26-
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 10
26+
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 12
2727

2828
/*******************************************************************************
2929
* Capture event timer on Radio end:
3030
* wire the RADIO EVENTS_END event to the
3131
* EVENT_TIMER TASKS_CAPTURE[<radio end timer>] task.
3232
*/
33-
#define HAL_RADIO_END_TIME_CAPTURE_PPI 11
33+
#define HAL_RADIO_END_TIME_CAPTURE_PPI 13
3434

3535
/*******************************************************************************
3636
* Start event timer on RTC tick:
3737
* wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task.
3838
*/
39-
#define HAL_EVENT_TIMER_START_PPI 7
39+
#define HAL_EVENT_TIMER_START_PPI 8
4040
#define HAL_PPIB_SEND_EVENT_TIMER_START_PPI \
4141
_CONCAT(NRF_PPIB_TASK_SEND_, HAL_EVENT_TIMER_START_PPI)
4242
#define HAL_PPIB_RECEIVE_EVENT_TIMER_START_PPI \
@@ -47,7 +47,7 @@
4747
* wire the RADIO EVENTS_READY event to the
4848
* EVENT_TIMER TASKS_CAPTURE[<radio ready timer>] task.
4949
*/
50-
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 8
50+
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 10
5151

5252
/*******************************************************************************
5353
* Trigger encryption task upon address reception:
@@ -62,27 +62,27 @@
6262
* Trigger automatic address resolution on Bit counter match:
6363
* wire the RADIO EVENTS_BCMATCH event to the AAR TASKS_START task.
6464
*/
65-
#define HAL_TRIGGER_AAR_PPI 12
65+
#define HAL_TRIGGER_AAR_PPI 6
6666

6767
#if defined(CONFIG_BT_CTLR_PHY_CODED) && \
6868
defined(CONFIG_HAS_HW_NRF_RADIO_BLE_CODED)
6969
/*******************************************************************************
7070
* Trigger Radio Rate override upon Rateboost event.
7171
*/
72-
#define HAL_TRIGGER_RATEOVERRIDE_PPI 13
72+
#define HAL_TRIGGER_RATEOVERRIDE_PPI 3
7373
#endif /* CONFIG_BT_CTLR_PHY_CODED && CONFIG_HAS_HW_NRF_RADIO_BLE_CODED */
7474

7575
#if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) || defined(HAL_RADIO_GPIO_HAVE_LNA_PIN)
7676
/******************************************************************************/
77-
#define HAL_ENABLE_PALNA_PPI 5
77+
#define HAL_ENABLE_PALNA_PPI 2
7878

7979
#if defined(HAL_RADIO_FEM_IS_NRF21540)
80-
#define HAL_DISABLE_PALNA_PPI 4
80+
#define HAL_DISABLE_PALNA_PPI 0
8181
#else
8282
#define HAL_DISABLE_PALNA_PPI HAL_ENABLE_PALNA_PPI
8383
#endif
8484

85-
#define HAL_ENABLE_FEM_PPI 3
85+
#define HAL_ENABLE_FEM_PPI 1
8686
#define HAL_DISABLE_FEM_PPI HAL_DISABLE_PALNA_PPI
8787

8888
#endif /* HAL_RADIO_GPIO_HAVE_PA_PIN || HAL_RADIO_GPIO_HAVE_LNA_PIN */
@@ -162,11 +162,11 @@
162162
* when direction finding RX and PHY is set to PHY1M. Due to that it can be shared with Radio Rate
163163
* override.
164164
*/
165-
#define HAL_TRIGGER_CRYPT_DELAY_PPI 13
165+
#define HAL_TRIGGER_CRYPT_DELAY_PPI 3
166166
#endif /* CONFIG_BT_CTLR_DF_CONN_CTE_RX */
167167

168168
/* The 2 adjacent PPI groups used for implementing SW_SWITCH_TIMER-based
169169
* auto-switch for TIFS. 'index' must be 0 or 1.
170170
*/
171-
#define SW_SWITCH_TIMER_TASK_GROUP_BASE 0
171+
#define SW_SWITCH_TIMER_TASK_GROUP_BASE 4
172172
#endif /* !CONFIG_BT_CTLR_TIFS_HW */

0 commit comments

Comments
 (0)