aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-10 16:21:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-10 16:21:27 +0000
commite2b6b440e12562804f161d8db677554bbd666bd1 (patch)
tree71ceaeec75f2ecf2d1ab601414cb4190f3f44ca0 /demos/ARM7-LPC214x-GCC/board.c
parentb7eba42be8e04a6a9cbade60d5ae0190fd34efae (diff)
downloadChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.tar.gz
ChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.tar.bz2
ChibiOS-e2b6b440e12562804f161d8db677554bbd666bd1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@612 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/board.c')
-rw-r--r--demos/ARM7-LPC214x-GCC/board.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/demos/ARM7-LPC214x-GCC/board.c b/demos/ARM7-LPC214x-GCC/board.c
index 9f453100c..767fb9123 100644
--- a/demos/ARM7-LPC214x-GCC/board.c
+++ b/demos/ARM7-LPC214x-GCC/board.c
@@ -31,30 +31,28 @@
/*
* Non-vectored IRQs handling here.
*/
-__attribute__((naked))
-static void IrqHandler(void) {
+CH_IRQ_HANDLER static void IrqHandler(void) {
- chSysIRQEnterI();
+ CH_IRQ_PROLOGUE();
/* nothing */
VICVectAddr = 0;
- chSysIRQExitI();
+ CH_IRQ_EPILOGUE();
}
/*
* Timer 0 IRQ handling here.
*/
-__attribute__((naked))
-static void T0IrqHandler(void) {
+CH_IRQ_HANDLER static void T0IrqHandler(void) {
- chSysIRQEnterI();
+ CH_IRQ_PROLOGUE();
T0IR = 1; /* Clear interrupt on match MR0. */
chSysTimerHandlerI();
VICVectAddr = 0;
- chSysIRQExitI();
+ CH_IRQ_EPILOGUE();
}
/*