From 219af6b86e2983aa8add930870764f70f8aa9b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Ciupis?= Date: Tue, 2 Apr 2024 13:57:24 +0200 Subject: [PATCH] modules: nrfxlib: nrf_802154: fix missed interrupts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current implementation of the nRF 802.15.4 SL lptimer platform for GRTC-based devices might miss valid interrupts. This commit fixes that. Signed-off-by: Jędrzej Ciupis --- .../sl/platform/nrf_802154_platform_sl_lptimer_grtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_grtc.c b/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_grtc.c index 7b61100fe91a..94b46b864e55 100644 --- a/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_grtc.c +++ b/modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_grtc.c @@ -89,12 +89,12 @@ uint64_t nrf_802154_platform_sl_lptimer_lpticks_to_us_convert(uint64_t lpticks) void nrf_802154_platform_sl_lptimer_schedule_at(uint64_t fire_lpticks) { /* This function is not required to be reentrant, hence no critical section. */ + atomic_set_bit(&m_enabled, 0); + z_nrf_grtc_timer_set(m_callbacks_cc_channel, fire_lpticks, timer_compare_handler, NULL); - - atomic_set_bit(&m_enabled, 0); } void nrf_802154_platform_sl_lptimer_disable(void)