Skip to content

Commit 1921ea7

Browse files
committed
Revert "drivers: timer: align to nrfx 4.0"
This reverts commit e089ee0.
1 parent e089ee0 commit 1921ea7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/timer/nrf_grtc_timer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ static inline uint64_t counter_sub(uint64_t a, uint64_t b)
8888

8989
static inline uint64_t counter(void)
9090
{
91-
return nrfx_grtc_syscounter_get();
91+
uint64_t now;
92+
nrfx_grtc_syscounter_get(&now);
93+
return now;
9294
}
9395

9496
static inline int get_comparator(uint32_t chan, uint64_t *cc)

0 commit comments

Comments
 (0)