Skip to content

Commit e089ee0

Browse files
committed
drivers: timer: align to nrfx 4.0
`nrfx_grtc_syscounter_get()` returns syscounter now. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 603df41 commit e089ee0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/timer/nrf_grtc_timer.c

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

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

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

0 commit comments

Comments
 (0)