Skip to content

Commit

Permalink
fixup! fixup! cpu/rpx0xx: implement periph timer
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Jul 12, 2021
1 parent e9d6bca commit 825aecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/rpx0xx/periph/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static inline uint64_t _timer_read_us(tim_t dev)
{
/* This is not safe when the second core also accesses the timer */
unsigned state = irq_disable();
uint32_t lo = DEV(dev)->TIMELR; /* always read timelr to lath the value of timehr */
uint32_t lo = DEV(dev)->TIMELR; /* always read timelr to latch the value of timehr */
uint32_t hi = DEV(dev)->TIMEHR; /* read timehr to unlatch */
irq_restore(state);
return ((uint64_t)hi << 32U) | lo;
Expand Down

0 comments on commit 825aecb

Please sign in to comment.