Skip to content

Commit ca6af30

Browse files
committed
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 21713c1 commit ca6af30

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_ppi.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static inline void hal_radio_nrf_ppi_channels_disable(uint32_t mask)
626626
* Enable Radio on Event Timer tick:
627627
* wire the EVENT_TIMER EVENTS_COMPARE[0] event to RADIO TASKS_TXEN/RXEN task.
628628
*/
629-
#define HAL_RADIO_ENABLE_ON_TICK_PPI 0
629+
#define HAL_RADIO_ENABLE_ON_TICK_PPI 6
630630
#define HAL_RADIO_ENABLE_TX_ON_TICK_PPI HAL_RADIO_ENABLE_ON_TICK_PPI
631631
#define HAL_RADIO_ENABLE_RX_ON_TICK_PPI HAL_RADIO_ENABLE_ON_TICK_PPI
632632

@@ -664,7 +664,7 @@ static inline void hal_radio_enable_on_tick_ppi_config_and_enable(uint8_t trx)
664664
* wire the RADIO EVENTS_ADDRESS event to the
665665
* EVENT_TIMER TASKS_CAPTURE[<address timer>] task.
666666
*/
667-
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 3
667+
#define HAL_RADIO_RECV_TIMEOUT_CANCEL_PPI 9
668668

669669
static inline void hal_radio_recv_timeout_cancel_ppi_config(void)
670670
{
@@ -679,7 +679,7 @@ static inline void hal_radio_recv_timeout_cancel_ppi_config(void)
679679
* wire the EVENT_TIMER EVENTS_COMPARE[<HCTO timer>] event
680680
* to the RADIO TASKS_DISABLE task.
681681
*/
682-
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 4
682+
#define HAL_RADIO_DISABLE_ON_HCTO_PPI 10
683683

684684
static inline void hal_radio_disable_on_hcto_ppi_config(void)
685685
{
@@ -694,7 +694,7 @@ static inline void hal_radio_disable_on_hcto_ppi_config(void)
694694
* wire the RADIO EVENTS_END event to the
695695
* EVENT_TIMER TASKS_CAPTURE[<radio end timer>] task.
696696
*/
697-
#define HAL_RADIO_END_TIME_CAPTURE_PPI 5
697+
#define HAL_RADIO_END_TIME_CAPTURE_PPI 11
698698

699699
static inline void hal_radio_end_time_capture_ppi_config(void)
700700
{
@@ -708,7 +708,7 @@ static inline void hal_radio_end_time_capture_ppi_config(void)
708708
* Start event timer on RTC tick:
709709
* wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task.
710710
*/
711-
#define HAL_EVENT_TIMER_START_PPI 1
711+
#define HAL_EVENT_TIMER_START_PPI 7
712712

713713
static inline void hal_event_timer_start_ppi_config(void)
714714
{
@@ -723,7 +723,7 @@ static inline void hal_event_timer_start_ppi_config(void)
723723
* wire the RADIO EVENTS_READY event to the
724724
* EVENT_TIMER TASKS_CAPTURE[<radio ready timer>] task.
725725
*/
726-
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 2
726+
#define HAL_RADIO_READY_TIME_CAPTURE_PPI 8
727727

728728
static inline void hal_radio_ready_time_capture_ppi_config(void)
729729
{
@@ -754,7 +754,7 @@ static inline void hal_trigger_crypt_ppi_config(void)
754754
* Trigger automatic address resolution on Bit counter match:
755755
* wire the RADIO EVENTS_BCMATCH event to the AAR TASKS_START task.
756756
*/
757-
#define HAL_TRIGGER_AAR_PPI 6
757+
#define HAL_TRIGGER_AAR_PPI 12
758758

759759
static inline void hal_trigger_aar_ppi_config(void)
760760
{
@@ -821,7 +821,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
821821
* 2 adjacent PPIs (8 & 9) and 2 adjacent PPI groups are used for this wiring;
822822
* <index> must be 0 or 1. <offset> must be a valid TIMER CC register offset.
823823
*/
824-
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE 8
824+
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE 14
825825
#define HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI(index) \
826826
(HAL_SW_SWITCH_GROUP_TASK_DISABLE_PPI_BASE + index)
827827

@@ -876,7 +876,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
876876
* We use the same PPI for the alternative SW Switch Timer compare
877877
* event.
878878
*/
879-
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE 8
879+
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE 14
880880
#define HAL_SW_SWITCH_RADIO_ENABLE_PPI(index) \
881881
(HAL_SW_SWITCH_RADIO_ENABLE_PPI_BASE + index)
882882

0 commit comments

Comments
 (0)