aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-16 12:37:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-16 12:37:01 +0000
commitb20088a8cb72e3f3e694e309671cd7f96fb552dc (patch)
tree130876338a5f58d98a15bfb0ce4f778b549ad31e /test/test.c
parentdd6e2f3911e6bdd4905bd2173492be3119a3e491 (diff)
downloadChibiOS-b20088a8cb72e3f3e694e309671cd7f96fb552dc.tar.gz
ChibiOS-b20088a8cb72e3f3e694e309671cd7f96fb552dc.tar.bz2
ChibiOS-b20088a8cb72e3f3e694e309671cd7f96fb552dc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@977 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index abbc1f0eb..8d709a5b2 100644
--- a/test/test.c
+++ b/test/test.c
@@ -57,16 +57,27 @@ static unsigned failpoint;
static char tokens_buffer[MAX_TOKENS];
static char *tokp;
+/*
+ * Static working areas, the following areas can be used for threads or
+ * used as temporary buffers.
+ */
WORKING_AREA(waT0, THREADS_STACK_SIZE);
WORKING_AREA(waT1, THREADS_STACK_SIZE);
WORKING_AREA(waT2, THREADS_STACK_SIZE);
WORKING_AREA(waT3, THREADS_STACK_SIZE);
WORKING_AREA(waT4, THREADS_STACK_SIZE);
-void *wa[MAX_THREADS] = {waT0, waT1, waT2, waT3, waT4};
+/*
+ * Pointers to the spawned threads.
+ */
Thread *threads[MAX_THREADS];
/*
+ * Pointers to the working areas.
+ */
+void * const wa[5] = {waT0, waT1, waT2, waT3, waT4};
+
+/*
* Console output.
*/
static BaseChannel *chp;