Skip to content

Commit 65dff43

Browse files
committed
modules: nrfxlib: nrf_802154: add missing code for v3.3.99-ncs1 based
The cherry-picked workaround against nRF53 anomaly 165, the "pretick" is based on nrfx 3.0.0. The added code introduces missing definitions to the soc.c file which are missing in nrfx 2.11.0. Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
1 parent 19cba71 commit 65dff43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ BUILD_ASSERT(CONFIG_MPSL);
3434
#define RTC_MIN_CYCLES_FROM_NOW 3
3535
#endif
3636

37+
/** @brief Macro for creating the interrupt bitmask for the specified compare channel. */
38+
#define NRF_RTC_CHANNEL_INT_MASK(ch) ((uint32_t)(NRF_RTC_INT_COMPARE0_MASK) << (ch))
39+
40+
/** @brief Macro for obtaining the compare event for the specified channel. */
41+
#define NRF_RTC_CHANNEL_EVENT_ADDR(ch) \
42+
(nrf_rtc_event_t)((NRF_RTC_EVENT_COMPARE_0) + (ch) * sizeof(uint32_t))
43+
3744
struct timer_desc {
3845
z_nrf_rtc_timer_compare_handler_t handler;
3946
uint64_t target_time;

0 commit comments

Comments
 (0)