mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 09:33:18 +08:00
arch/risc-v/src/litex_ticked: Set initial tick count to known value.
The tick count should be manually set as there is no guarantee that the previous boot stage hasn't modified this count since reset.
This commit is contained in:
@@ -81,6 +81,7 @@ void up_timer_initialize(void)
|
||||
|
||||
/* Set the timer period */
|
||||
|
||||
putreg32(TICK_COUNT, LITEX_TIMER0_LOAD);
|
||||
putreg32(TICK_COUNT, LITEX_TIMER0_RELOAD);
|
||||
|
||||
/* Attach timer interrupt handler */
|
||||
|
||||
Reference in New Issue
Block a user