diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-22 15:24:50 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-22 15:24:50 +0000 |
commit | 97bf45204321755cf2e78a7cc7ff616edaec59c4 (patch) | |
tree | 12d06ab98ac32707ddb3ee228c4ed7f9e2870b1e /demos/AVR-AT90CANx-GCC | |
parent | 080fb7d084f878e792563a60a255b5fc993ae0ba (diff) | |
download | ChibiOS-97bf45204321755cf2e78a7cc7ff616edaec59c4.tar.gz ChibiOS-97bf45204321755cf2e78a7cc7ff616edaec59c4.tar.bz2 ChibiOS-97bf45204321755cf2e78a7cc7ff616edaec59c4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@105 35acf78f-673a-0410-8e92-d51de3d6d3f4
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) {
|