aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2010-09-14 21:59:39 -0400
committerPerry Hung <iperry@gmail.com>2010-09-14 21:59:39 -0400
commit1cec807e44da29c5a122e57120174f4711d95f25 (patch)
treefd5b76c3c3a40a7670aa8f35d0b590fb38ea4d3b
parent208e35e7d704467cb04b054e3fc32acf82be9e49 (diff)
downloadlibrambutan-1cec807e44da29c5a122e57120174f4711d95f25.tar.gz
librambutan-1cec807e44da29c5a122e57120174f4711d95f25.zip
Fix enable/disable global irq
Oooooops.
-rw-r--r--libmaple/nvic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/nvic.h b/libmaple/nvic.h
index 4f4972d..3286357 100644
--- a/libmaple/nvic.h
+++ b/libmaple/nvic.h
@@ -73,8 +73,8 @@ enum {
};
-#define nvic_globalirq_enable() asm volatile("cpsid i")
-#define nvic_globalirq_disable() asm volatile("cpsie i")
+#define nvic_globalirq_enable() asm volatile("cpsie i")
+#define nvic_globalirq_disable() asm volatile("cpsid i")
void nvic_init(void);
void nvic_irq_enable(uint32 device);