mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
rm48x50: fix bug in rt_hw_interrupt_{mask,unmask}
This commit is contained in:
@@ -68,12 +68,12 @@ void rt_hw_interrupt_init(void)
|
||||
|
||||
void rt_hw_interrupt_mask(int vector)
|
||||
{
|
||||
vimEnableInterrupt(vector, SYS_IRQ);
|
||||
vimDisableInterrupt(vector);
|
||||
}
|
||||
|
||||
void rt_hw_interrupt_umask(int vector)
|
||||
{
|
||||
vimDisableInterrupt(vector);
|
||||
vimEnableInterrupt(vector, SYS_IRQ);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user