From b17d5934308a6a3321ddf5eee7eaaa331fc0318d Mon Sep 17 00:00:00 2001 From: Andrzej Kuros Date: Mon, 19 Aug 2024 15:02:08 +0200 Subject: [PATCH] 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 --- .../sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c b/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c index a2a3fcf3682e..d2d97a5abbf7 100644 --- a/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c +++ b/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_zephyr.c @@ -34,6 +34,13 @@ BUILD_ASSERT(CONFIG_MPSL); #define RTC_MIN_CYCLES_FROM_NOW 3 #endif +/** @brief Macro for creating the interrupt bitmask for the specified compare channel. */ +#define NRF_RTC_CHANNEL_INT_MASK(ch) ((uint32_t)(NRF_RTC_INT_COMPARE0_MASK) << (ch)) + +/** @brief Macro for obtaining the compare event for the specified channel. */ +#define NRF_RTC_CHANNEL_EVENT_ADDR(ch) \ + (nrf_rtc_event_t)((NRF_RTC_EVENT_COMPARE_0) + (ch) * sizeof(uint32_t)) + struct timer_desc { z_nrf_rtc_timer_compare_handler_t handler; uint64_t target_time;