diff options
| author | Grissiom <[email protected]> | 2013-05-29 23:36:32 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-05-29 23:36:32 +0800 |
| commit | 810311b624534fcc7b8becddd2125a36a89fe926 (patch) | |
| tree | 6d2f6b11e2b7659b0e4ed0fb7353db6c65f6060d | |
| parent | 9237433030447b807b9f6b269f899ddcfc04017e (diff) | |
rm48x50: fix bug in rt_hw_interrupt_{mask,unmask}
| -rw-r--r-- | libcpu/arm/rm48x50/interrupt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/rm48x50/interrupt.c b/libcpu/arm/rm48x50/interrupt.c index f3b3708ffe..8d0a977db9 100644 --- a/libcpu/arm/rm48x50/interrupt.c +++ b/libcpu/arm/rm48x50/interrupt.c @@ -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); } /** |
