aboutsummaryrefslogtreecommitdiffstats
path: root/ports/AVR
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-02-29 14:55:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-02-29 14:55:04 +0000
commit4ea04cc357408d68750e5b4a9d834c5a5d015fa7 (patch)
tree0115aa895f27086860026631f4f80095a24d4a36 /ports/AVR
parent64e798c8cd4ae5e6ce18290f8452099ec90ebd14 (diff)
downloadChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.tar.gz
ChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.tar.bz2
ChibiOS-4ea04cc357408d68750e5b4a9d834c5a5d015fa7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@208 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/AVR')
-rw-r--r--ports/AVR/chcore.c2
-rw-r--r--ports/AVR/chcore.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/AVR/chcore.c b/ports/AVR/chcore.c
index 7907de1dd..022e80e64 100644
--- a/ports/AVR/chcore.c
+++ b/ports/AVR/chcore.c
@@ -24,7 +24,7 @@
void _IdleThread(void *p) {
while (TRUE) {
-// asm("sleep");
+ asm("sleep");
}
}
diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h
index 3fd027951..dd3f65ba8 100644
--- a/ports/AVR/chcore.h
+++ b/ports/AVR/chcore.h
@@ -94,7 +94,7 @@ typedef struct {
tp->p_ctx.sp->pch = (int)threadstart; \
}
-#define INT_REQUIRED_STACK 0x10
+#define INT_REQUIRED_STACK 8
#define StackAlign(n) (n)
#define UserStackSize(n) StackAlign(sizeof(Thread) + \
(sizeof(struct intctx) - 1) + \