aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-G++
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-19 19:50:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-19 19:50:21 +0000
commitbd996b1663e9a10aad21ec395eab944a98f3a905 (patch)
tree8e63e783af2634ec3b69a2237c2f63a27d00bed7 /demos/ARM7-LPC214x-G++
parent3f200660f67fa674ef388ed3b507e29f71a2c462 (diff)
downloadChibiOS-bd996b1663e9a10aad21ec395eab944a98f3a905.tar.gz
ChibiOS-bd996b1663e9a10aad21ec395eab944a98f3a905.tar.bz2
ChibiOS-bd996b1663e9a10aad21ec395eab944a98f3a905.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@646 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-G++')
-rw-r--r--demos/ARM7-LPC214x-G++/board.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/demos/ARM7-LPC214x-G++/board.c b/demos/ARM7-LPC214x-G++/board.c
index fef4deb36..f6792851a 100644
--- a/demos/ARM7-LPC214x-G++/board.c
+++ b/demos/ARM7-LPC214x-G++/board.c
@@ -31,27 +31,29 @@
/*
* Non-vectored IRQs handling here.
*/
-CH_IRQ_HANDLER static void IrqHandler(void) {
+static CH_IRQ_HANDLER(IrqHandler) {
CH_IRQ_PROLOGUE();
/* nothing */
- VICVectAddr = 0;
+ VICVectAddr = 0;
CH_IRQ_EPILOGUE();
}
/*
* Timer 0 IRQ handling here.
*/
-CH_IRQ_HANDLER static void T0IrqHandler(void) {
+static CH_IRQ_HANDLER(T0IrqHandler) {
CH_IRQ_PROLOGUE();
-
T0IR = 1; /* Clear interrupt on match MR0. */
+
+ chSysLockI();
chSysTimerHandlerI();
- VICVectAddr = 0;
+ chSysUnlockI();
+ VICVectAddr = 0;
CH_IRQ_EPILOGUE();
}