diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-19 19:50:21 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-19 19:50:21 +0000 |
commit | bd996b1663e9a10aad21ec395eab944a98f3a905 (patch) | |
tree | 8e63e783af2634ec3b69a2237c2f63a27d00bed7 /demos/ARM7-LPC214x-GCC-minimal/board.c | |
parent | 3f200660f67fa674ef388ed3b507e29f71a2c462 (diff) | |
download | ChibiOS-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-GCC-minimal/board.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/board.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/board.c b/demos/ARM7-LPC214x-GCC-minimal/board.c index e10297562..4ccb5e78c 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/board.c +++ b/demos/ARM7-LPC214x-GCC-minimal/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();
}
|