diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-09 11:05:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-09 11:05:26 +0000 |
commit | 52ab7591c76c47228b41c23c45f943b7b0d43483 (patch) | |
tree | d76709419da73cab968434b6a2326dbe94fd8090 /demos/MSP430-MSP430x1611-GCC | |
parent | a07bd21d4427c9f254aae8f6da10dabdaedea43e (diff) | |
download | ChibiOS-52ab7591c76c47228b41c23c45f943b7b0d43483.tar.gz ChibiOS-52ab7591c76c47228b41c23c45f943b7b0d43483.tar.bz2 ChibiOS-52ab7591c76c47228b41c23c45f943b7b0d43483.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@595 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC')
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/board.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/board.c b/demos/MSP430-MSP430x1611-GCC/board.c index 8fcecec17..f5e5e4012 100644 --- a/demos/MSP430-MSP430x1611-GCC/board.c +++ b/demos/MSP430-MSP430x1611-GCC/board.c @@ -85,9 +85,13 @@ void hwinit(void) { InitSerial();
}
-interrupt(TIMERA0_VECTOR) tmr0irq(void) {
+SYS_IRQ_HANDLER(TIMERA0_VECTOR) tmr0irq(void) {
- chSysIRQEnterI();
+ SYS_IRQ_PROLOGUE();
+
+ chSysLockI();
chSysTimerHandlerI();
- chSysIRQExitI();
+ chSysUnlockI();
+
+ SYS_IRQ_EPILOGUE();
}
|