Skip to content

Commit c2f023e

Browse files
committed
D1 timer counts down so you gotta do ssome extra stuff
1 parent 5e4ff79 commit c2f023e

File tree

1 file changed

+1
-1
lines changed
  • platforms/allwinner-d1/d1-core/src

1 file changed

+1
-1
lines changed

platforms/allwinner-d1/d1-core/src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Timer0 {
2727
// concurrently mutating the timer.
2828
Self::steal()
2929
};
30-
timer0.current_value() as u64
30+
0xFFFF_FFFF - timer0.current_value() as u64
3131
})
3232
.named("CLOCK_D1_TIMER0")
3333
}

0 commit comments

Comments
 (0)