4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 16:43:32 +08:00

rm48x50: fix bug in rt_hw_interrupt_{mask,unmask}

This commit is contained in:
Grissiom 2013-05-29 23:36:32 +08:00
parent 9237433030
commit 810311b624

View File

@ -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);
}
/**