|
7 | 7 | /* Use the timer instance ID, not NRF_TIMERx directly, so that it can be checked
|
8 | 8 | * in radio_nrf5_ppi.h by the preprocessor.
|
9 | 9 | */
|
10 |
| -#if !defined(CONFIG_BT_CTLR_TIFS_HW) |
| 10 | +#if defined(CONFIG_BT_CTLR_TIFS_HW) |
| 11 | +#define EVENT_TIMER_ID 0 |
| 12 | +#define EVENT_TIMER _CONCAT(NRF_TIMER, EVENT_TIMER_ID) |
11 | 13 |
|
| 14 | +/* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission |
| 15 | + * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is |
| 16 | + * received or transmitted. |
| 17 | + */ |
| 18 | +#define NRF_RADIO_TXRX_END_EVENT EVENTS_END |
| 19 | +/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE. |
| 20 | + * This is a default shortcut used to automatically disable Radio after end of PDU. |
| 21 | + */ |
| 22 | +#define NRF_RADIO_SHORTS_PDU_END_DISABLE RADIO_SHORTS_END_DISABLE_Msk |
| 23 | + |
| 24 | +#define HAL_EVENT_TIMER_SAMPLE_CC_OFFSET 3 |
| 25 | +#define HAL_EVENT_TIMER_SAMPLE_TASK NRF_TIMER_TASK_CAPTURE3 |
| 26 | + |
| 27 | +#else /* !CONFIG_BT_CTLR_TIFS_HW */ |
12 | 28 | #if defined(CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER)
|
13 | 29 | #define EVENT_TIMER_ID 4
|
14 | 30 | #define EVENT_TIMER _CONCAT(NRF_TIMER, EVENT_TIMER_ID)
|
|
110 | 126 | #define HAL_EVENT_TIMER_SAMPLE_CC_OFFSET 3
|
111 | 127 | #define HAL_EVENT_TIMER_SAMPLE_TASK NRF_TIMER_TASK_CAPTURE3
|
112 | 128 | #endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
|
113 |
| - |
114 |
| -#else /* !CONFIG_BT_CTLR_TIFS_HW */ |
115 |
| -#define EVENT_TIMER_ID 0 |
116 |
| -#define EVENT_TIMER _CONCAT(NRF_TIMER, EVENT_TIMER_ID) |
117 |
| - |
118 |
| -/* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission |
119 |
| - * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is |
120 |
| - * received or transmitted. |
121 |
| - */ |
122 |
| -#define NRF_RADIO_TXRX_END_EVENT EVENTS_END |
123 |
| -/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE. |
124 |
| - * This is a default shortcut used to automatically disable Radio after end of PDU. |
125 |
| - */ |
126 |
| -#define NRF_RADIO_SHORTS_PDU_END_DISABLE RADIO_SHORTS_END_DISABLE_Msk |
127 |
| - |
128 |
| -#define HAL_EVENT_TIMER_SAMPLE_CC_OFFSET 3 |
129 |
| -#define HAL_EVENT_TIMER_SAMPLE_TASK NRF_TIMER_TASK_CAPTURE3 |
130 | 129 | #endif /* !CONFIG_BT_CTLR_TIFS_HW */
|
0 commit comments