aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil
diff options
context:
space:
mode:
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