From 810311b624534fcc7b8becddd2125a36a89fe926 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 29 May 2013 23:36:32 +0800 Subject: [PATCH] rm48x50: fix bug in rt_hw_interrupt_{mask,unmask} --- libcpu/arm/rm48x50/interrupt.c | 4 ++-- 1 file 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); } /**