From 52ab7591c76c47228b41c23c45f943b7b0d43483 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 9 Jan 2009 11:05:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@595 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/MSP430-MSP430x1611-GCC/board.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'demos/MSP430-MSP430x1611-GCC') 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(); } -- cgit v1.2.3