mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Set Timer's IRQ Level/Mode during init
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
@@ -149,6 +149,8 @@ void up_timer_initialize(void)
|
||||
|
||||
irq_attach(IRQ_SYSTIMER, (xcpt_t)up_timerisr);
|
||||
up_enable_irq(IRQ_SYSTIMER);
|
||||
ftintc010_set_trig_mode(IRQ_SYSTIMER, 1);
|
||||
ftintc010_set_trig_level(IRQ_SYSTIMER, 0);
|
||||
|
||||
/* Unmask IRQ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user