aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-06 09:18:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-06 09:18:24 +0000
commitfee14cb4ce565ed6c47c675a14cfb9480cb52886 (patch)
tree829df0e9bca20970f8fdcc6752e4b10026ff35b3 /src/templates
parenta1f4ecfe082b19016b01672a549cec08167cb171 (diff)
downloadChibiOS-fee14cb4ce565ed6c47c675a14cfb9480cb52886.tar.gz
ChibiOS-fee14cb4ce565ed6c47c675a14cfb9480cb52886.tar.bz2
ChibiOS-fee14cb4ce565ed6c47c675a14cfb9480cb52886.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@586 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/chcore.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/templates/chcore.h b/src/templates/chcore.h
index 46d30a3aa..4e0aaf16a 100644
--- a/src/templates/chcore.h
+++ b/src/templates/chcore.h
@@ -62,12 +62,11 @@ typedef struct {
} Context;
/**
- * Platform dependent part of the \p chThdCreate() API.
+ * Platform dependent part of the @p chThdCreate() API.
* This code usually setup the context switching frame represented by a
* @p intctx structure.
*/
-#define SETUP_CONTEXT(workspace, wsize, pf, arg) \
-{ \
+#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
}
/**
@@ -76,7 +75,9 @@ typedef struct {
* thread should take no more space than those reserved
* by @p INT_REQUIRED_STACK.
*/
+#ifndef IDLE_THREAD_STACK_SIZE
#define IDLE_THREAD_STACK_SIZE 0
+#endif
/**
* Per-thread stack overhead for interrupts servicing, it is used in the
@@ -85,7 +86,9 @@ typedef struct {
* interrupt stack and the stack space between @p intctx and @p extctx is
* known to be zero.
*/
+#ifndef INT_REQUIRED_STACK
#define INT_REQUIRED_STACK 0
+#endif
/**
* Enforces a correct alignment for a stack area size value.
@@ -113,7 +116,7 @@ typedef struct {
#define SYS_IRQ_PROLOGUE()
/**
- * IRQ epilogue code, inserted at the start of all IRQ handlers enabled to
+ * IRQ epilogue code, inserted at the end of all IRQ handlers enabled to
* invoke system APIs.
*/
#define SYS_IRQ_EPILOGUE()