aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/board.c10
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();
}