nios2: add _arch_irq_connect_dynamic()
Implements dynamic interrupts. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
51ca352c20
commit
b3c398fd8d
1 changed files with 12 additions and 0 deletions
|
@ -107,3 +107,15 @@ void _enter_irq(u32_t ipending)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_DYNAMIC_INTERRUPTS
|
||||||
|
int _arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
||||||
|
void (*routine)(void *parameter), void *parameter,
|
||||||
|
u32_t flags)
|
||||||
|
{
|
||||||
|
ARG_UNUSED(flags);
|
||||||
|
ARG_UNUSED(priority);
|
||||||
|
|
||||||
|
z_isr_install(irq, routine, parameter);
|
||||||
|
return irq;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_DYNAMIC_INTERRUPTS */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue