Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bsp/nuvoton/libraries/nuc980/rtt_port/drv_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ void rt_hw_interrupt_init(void)
{
int i;

*((volatile unsigned int *)REG_AIC_INTDIS0) = 0xFFFFFFFF; // disable all interrupt channel
*((volatile unsigned int *)REG_AIC_INTDIS1) = 0xFFFFFFFF; // disable all interrupt channel
outpw(REG_AIC_INTDIS0, 0xFFFFFFFF); // disable all interrupt channel
outpw(REG_AIC_INTDIS1, 0xFFFFFFFF); // disable all interrupt channel

outpw(REG_AIC_EOIS, 1); // resetand restart AIC's IRQ processing
outpw(REG_AIC_EOFS, 1); // resetand restart AIC's IRQ processing

/* init interrupt nest, and context in thread sp */
rt_interrupt_nest = 0;
Expand Down