aboutsummaryrefslogtreecommitdiffstats
path: root/test/testmtx.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-23 13:12:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-23 13:12:41 +0000
commit506212845dd0644b2755191da1252380aababd24 (patch)
tree112d1f18e69f049b45bceb119226fef188f7f82a /test/testmtx.c
parent9d812b5db3c21ff09e30a115c7643f7fec5492a3 (diff)
downloadChibiOS-506212845dd0644b2755191da1252380aababd24.tar.gz
ChibiOS-506212845dd0644b2755191da1252380aababd24.tar.bz2
ChibiOS-506212845dd0644b2755191da1252380aababd24.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2839 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testmtx.c')
-rw-r--r--test/testmtx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testmtx.c b/test/testmtx.c
index 4112eb004..08329a33b 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -60,7 +60,7 @@
* @brief Mutexes and CondVars test header file
*/
-#if CH_USE_MUTEXES
+#if CH_USE_MUTEXES || defined(__DOXYGEN__)
#define ALLOWED_DELAY 5
@@ -71,7 +71,7 @@
*/
static MUTEX_DECL(m1);
static MUTEX_DECL(m2);
-#if CH_USE_CONDVARS
+#if CH_USE_CONDVARS || defined(__DOXYGEN__)
static CONDVAR_DECL(c1);
#endif
@@ -120,7 +120,7 @@ ROMCONST struct testcase testmtx1 = {
mtx1_execute
};
-#if CH_DBG_THREADS_PROFILING
+#if CH_DBG_THREADS_PROFILING || defined(__DOXYGEN__)
/**
* @page test_mtx_002 Priority inheritance, simple case
*
@@ -467,7 +467,7 @@ ROMCONST struct testcase testmtx5 = {
mtx5_execute
};
-#if CH_USE_CONDVARS
+#if CH_USE_CONDVARS || defined(__DOXYGEN__)
/**
* @page test_mtx_006 Condition Variable signal test
*
@@ -578,7 +578,7 @@ static msg_t thread11(void *p) {
chMtxLock(&m2);
chMtxLock(&m1);
-#if CH_USE_CONDVARS_TIMEOUT
+#if CH_USE_CONDVARS_TIMEOUT || defined(__DOXYGEN__)
chCondWaitTimeout(&c1, TIME_INFINITE);
#else
chCondWait(&c1);
@@ -622,15 +622,15 @@ ROMCONST struct testcase testmtx8 = {
* @brief Test sequence for mutexes.
*/
ROMCONST struct testcase * ROMCONST patternmtx[] = {
-#if CH_USE_MUTEXES
+#if CH_USE_MUTEXES || defined(__DOXYGEN__)
&testmtx1,
-#if CH_DBG_THREADS_PROFILING
+#if CH_DBG_THREADS_PROFILING || defined(__DOXYGEN__)
&testmtx2,
&testmtx3,
#endif
&testmtx4,
&testmtx5,
-#if CH_USE_CONDVARS
+#if CH_USE_CONDVARS || defined(__DOXYGEN__)
&testmtx6,
&testmtx7,
&testmtx8,