aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ch.h2
-rw-r--r--src/include/semaphores.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ch.h b/src/include/ch.h
index 1102f4013..0ef78fbf4 100644
--- a/src/include/ch.h
+++ b/src/include/ch.h
@@ -25,6 +25,8 @@
#ifndef _CH_H_
#define _CH_H_
+#define _CHIBIOS_RT_
+
#ifndef __DOXIGEN__
#ifndef _CHCONF_H_
#include <chconf.h>
diff --git a/src/include/semaphores.h b/src/include/semaphores.h
index dfee499f0..4ffb3dc0d 100644
--- a/src/include/semaphores.h
+++ b/src/include/semaphores.h
@@ -45,8 +45,10 @@ extern "C" {
void chSemResetI(Semaphore *sp, t_cnt n);
void chSemWait(Semaphore *sp);
void chSemWaitS(Semaphore *sp);
+#ifdef CH_USE_SEMAPHORES_TIMEOUT
t_msg chSemWaitTimeout(Semaphore *sp, t_time time);
t_msg chSemWaitTimeoutS(Semaphore *sp, t_time time);
+#endif
void chSemSignal(Semaphore *sp);
void chSemSignalI(Semaphore *sp);
void chSemSignalWait(Semaphore *sps, Semaphore *spw);