aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/scheduler.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
commitd6d799ed48f8193bee286187132221f831726a07 (patch)
tree928f9db3dbb76cfdef92405635b8d1b7885e5b5e /src/include/scheduler.h
parentff4dd3f8f0f95652f754ab869b136d31d671ac51 (diff)
downloadChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.gz
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.bz2
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@39 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/scheduler.h')
-rw-r--r--src/include/scheduler.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/scheduler.h b/src/include/scheduler.h
index 6a3f7f8f8..884b3936c 100644
--- a/src/include/scheduler.h
+++ b/src/include/scheduler.h
@@ -45,14 +45,20 @@ typedef struct {
/*
* Scheduler APIs.
*/
-void chSchInit(void);
-Thread *chSchReadyI(Thread *tp);
-void chSchGoSleepI(t_tstate newstate);
-void chSchWakeupI(Thread *tp, t_msg msg);
-void chSchRescheduleI(void);
-void chSchDoRescheduleI(void);
-BOOL chSchRescRequiredI(void);
-void chSchTimerHandlerI(void);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void chSchInit(void);
+ Thread *chSchReadyI(Thread *tp);
+ void chSchGoSleepI(t_tstate newstate);
+ void chSchWakeupI(Thread *tp, t_msg msg);
+ void chSchRescheduleI(void);
+ void chSchDoRescheduleI(void);
+ BOOL chSchRescRequiredI(void);
+ void chSchTimerHandlerI(void);
+#ifdef __cplusplus
+}
+#endif
/**
* Current thread pointer.