aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-01-25 10:07:18 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-01-25 10:07:18 +0000
commit811bbbc8fbe38cda9361b11d0e23fbc927153c53 (patch)
tree8b3ba6d4e560b6204452749653d326e4c5114c9f /src/chschd.c
parent86f169d26dbfb0ea1a35e1736401464e10c7ac94 (diff)
downloadChibiOS-811bbbc8fbe38cda9361b11d0e23fbc927153c53.tar.gz
ChibiOS-811bbbc8fbe38cda9361b11d0e23fbc927153c53.tar.bz2
ChibiOS-811bbbc8fbe38cda9361b11d0e23fbc927153c53.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@184 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 92a0fbb0d..1242ea275 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -90,6 +90,7 @@ void chSchGoSleepS(t_tstate newstate) {
chSysSwitchI(otp, currp);
}
+#ifdef CH_USE_VIRTUAL_TIMERS
static void wakeup(void *p) {
if (((Thread *)p)->p_state == PRWTSEM)
@@ -116,6 +117,7 @@ t_msg chSchGoSleepTimeoutS(t_tstate newstate, t_time time) {
chVTResetI(&vt);
return currp->p_rdymsg;
}
+#endif /* CH_USE_VIRTUAL_TIMERS */
/**
* Wakeups a thread, the thread is inserted into the ready list or made