aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-02-19 11:19:42 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-02-19 11:19:42 +0000
commit6865ddcce5e27e124f2f7c114391191ce1f4bd27 (patch)
tree692bf3ea4631b2031f4a332705e002d29bac8107 /os/nil
parent12d3d002c8150cb47dc4606419f32d7219a736be (diff)
downloadChibiOS-6865ddcce5e27e124f2f7c114391191ce1f4bd27.tar.gz
ChibiOS-6865ddcce5e27e124f2f7c114391191ce1f4bd27.tar.bz2
ChibiOS-6865ddcce5e27e124f2f7c114391191ce1f4bd27.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8911 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil')
-rw-r--r--os/nil/src/ch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/nil/src/ch.c b/os/nil/src/ch.c
index 29ec1af5c..bf1d6fe46 100644
--- a/os/nil/src/ch.c
+++ b/os/nil/src/ch.c
@@ -942,7 +942,9 @@ void chSemResetI(semaphore_t *sp, cnt_t n) {
tp++;
}
}
+#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
+#if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
/**
* @brief Adds a set of event flags directly to the specified @p thread_t.
*
@@ -958,9 +960,7 @@ void chEvtSignal(thread_t *tp, eventmask_t mask) {
chSchRescheduleS();
chSysUnlock();
}
-#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
-#if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
/**
* @brief Adds a set of event flags directly to the specified @p thread_t.
* @post This function does not reschedule so a call to a rescheduling