diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-09 14:26:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-09 14:26:25 +0000 |
commit | e1b6b9e988d70442e71b520f5a8f43e355688a71 (patch) | |
tree | e6b673f5d1a87951a86b0b1a7b3bd2527c9d2fb9 /demos/AVR-ATmega128-GCC | |
parent | 52ab7591c76c47228b41c23c45f943b7b0d43483 (diff) | |
download | ChibiOS-e1b6b9e988d70442e71b520f5a8f43e355688a71.tar.gz ChibiOS-e1b6b9e988d70442e71b520f5a8f43e355688a71.tar.bz2 ChibiOS-e1b6b9e988d70442e71b520f5a8f43e355688a71.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@596 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR-ATmega128-GCC')
-rw-r--r-- | demos/AVR-ATmega128-GCC/board.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/demos/AVR-ATmega128-GCC/board.c b/demos/AVR-ATmega128-GCC/board.c index 03907d391..96c810b17 100644 --- a/demos/AVR-ATmega128-GCC/board.c +++ b/demos/AVR-ATmega128-GCC/board.c @@ -19,19 +19,18 @@ #include <ch.h>
-#include <avr/io.h>
-#include <avr/interrupt.h>
-
#include "board.h"
#include "avr_serial.h"
-ISR(TIMER0_COMP_vect) {
+SYS_IRQ_HANDLER(TIMER0_COMP_vect) {
- chSysIRQEnterI();
+ SYS_IRQ_PROLOGUE();
+ chSysLockI();
chSysTimerHandlerI();
+ chSysUnlockI();
- chSysIRQExitI();
+ SYS_IRQ_EPILOGUE();
}
/*
|