aboutsummaryrefslogtreecommitdiffstats
path: root/test/testsem.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-16 10:57:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-16 10:57:16 +0000
commit2706d240bbea25b21dac8e0bc123de9cb2080a13 (patch)
tree2dadce33dd364f5d745f3f8c5274289ad237e63d /test/testsem.c
parent2f39b6e6b5bd6383c125fbf151ffd0d7e488a1de (diff)
downloadChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.tar.gz
ChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.tar.bz2
ChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.zip
Added static initializers to thread queues, semaphores, mutexes, condvars and event sources.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@975 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testsem.c')
-rw-r--r--test/testsem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testsem.c b/test/testsem.c
index 7cb103789..46c6a7941 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -53,7 +53,12 @@
#define ALLOWED_DELAY MS2ST(5)
-static Semaphore sem1;
+/*
+ * Note, the static initializers are not really required because the
+ * variables are explicitly initialized in each test case. It is done in order
+ * to test the macros.
+ */
+static SEMAPHORE_DECL(sem1, 0);
/**
* @page test_sem_001 Enqueuing test