mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arch/armv8-r/timer: fix the UINT64_MAX mask cause tick mode no isr
When TICKLESS not enabled, up_alarm_set_lowerhalf will call start, if we overwrite the compare register will cause TICK mode no longer isr. Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
482de93342
commit
8cb0e654a3
1 changed files with 2 additions and 2 deletions
|
|
@ -233,10 +233,10 @@ void up_timer_initialize(void)
|
|||
tmrinfo("%s: cp15 timer(s) running at %" PRIu64 ".%" PRIu64 "MHz\n",
|
||||
__func__, freq / 1000000, (freq / 10000) % 100);
|
||||
|
||||
up_alarm_set_lowerhalf(arm_oneshot_initialize());
|
||||
|
||||
arm_timer_phy_set_absolute(UINT64_MAX);
|
||||
|
||||
up_alarm_set_lowerhalf(arm_oneshot_initialize());
|
||||
|
||||
up_enable_irq(ARM_ARCH_TIMER_IRQ);
|
||||
arm_timer_phy_enable(true);
|
||||
arm_timer_phy_set_irq_mask(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue