diff options
Diffstat (limited to 'demos/AVR-AT90CANx-GCC')
-rw-r--r-- | demos/AVR-AT90CANx-GCC/chcore.h | 2 | ||||
-rw-r--r-- | demos/AVR-AT90CANx-GCC/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/demos/AVR-AT90CANx-GCC/chcore.h b/demos/AVR-AT90CANx-GCC/chcore.h index 32c939d32..07cb45f64 100644 --- a/demos/AVR-AT90CANx-GCC/chcore.h +++ b/demos/AVR-AT90CANx-GCC/chcore.h @@ -103,6 +103,8 @@ typedef struct { EXTRA_INT_STACK + \
(n))
+#define WorkingArea(s, n) BYTE8 s[UserStackSize(n)];
+
#define chSysLock() asm("cli")
#define chSysUnlock() asm("sei")
#define chSysPuts(msg) {}
diff --git a/demos/AVR-AT90CANx-GCC/main.c b/demos/AVR-AT90CANx-GCC/main.c index 61156b040..14c45cf47 100644 --- a/demos/AVR-AT90CANx-GCC/main.c +++ b/demos/AVR-AT90CANx-GCC/main.c @@ -23,7 +23,7 @@ void hwinit(void);
-static BYTE8 waThread1[UserStackSize(32)];
+static WorkingArea(waThread1, 32);
static t_msg Thread1(void *arg) {
while (TRUE) {
|