Skip to content

Commit f0283fb

Browse files
committed
nrfx: hal: nrf_grtc: Remove readback from event clear
Readback was added to ensure that interrupt is not triggered spuriously. It may only happen if event clearing is done just before exiting the interrupt. It is not the case in the GRTC driver. Each access to the register interface is costly (~160 320MHz cycles) so it must be avoided if possible. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent a5a2277 commit f0283fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

nrfx/hal/nrf_grtc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,6 @@ NRF_STATIC_INLINE void nrf_grtc_event_clear(NRF_GRTC_Type * p_reg, nrf_grtc_even
15591559
#endif
15601560

15611561
*((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
1562-
nrf_event_readback((uint8_t *)p_reg + (uint32_t)event);
15631562
}
15641563

15651564
#if NRF_GRTC_HAS_RTCOUNTER

0 commit comments

Comments
 (0)