aboutsummaryrefslogtreecommitdiffstats
path: root/test/nil/test_root.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-01-16 11:31:20 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-01-16 11:31:20 +0000
commitc2ffa54ce115fa017ca086bd82245783d0619304 (patch)
tree9da179a8c50180095a03c9e667794f1fb150042f /test/nil/test_root.c
parentb2b371f231bff1128480459ee47e8c491eff620b (diff)
downloadChibiOS-c2ffa54ce115fa017ca086bd82245783d0619304.tar.gz
ChibiOS-c2ffa54ce115fa017ca086bd82245783d0619304.tar.bz2
ChibiOS-c2ffa54ce115fa017ca086bd82245783d0619304.zip
Fixed bug #692.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8763 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil/test_root.c')
-rw-r--r--test/nil/test_root.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nil/test_root.c b/test/nil/test_root.c
index 3c79f46c7..12ae7ef52 100644
--- a/test/nil/test_root.c
+++ b/test/nil/test_root.c
@@ -51,7 +51,11 @@ thread_reference_t gtr1;
*/
THD_WORKING_AREA(wa_test_support, 128);
THD_FUNCTION(test_support, arg) {
+#if NIL_CFG_USE_EVENTS == TRUE
thread_t *tp = (thread_t *)arg;
+#else
+ (void)arg;
+#endif
/* Initializing global resources.*/
chSemObjectInit(&gsem1, 0);
@@ -64,7 +68,9 @@ THD_FUNCTION(test_support, arg) {
chSemSignalI(&gsem1);
chSemResetI(&gsem2, 0);
chThdResumeI(&gtr1, MSG_OK);
+#if NIL_CFG_USE_EVENTS == TRUE
chEvtSignalI(tp, 0x55);
+#endif
chSchRescheduleS();
chSysUnlock();