diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-30 13:14:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-30 13:14:36 +0000 |
commit | 6e9303ee9cf662dc26a9aa0b6f3a8e2d0af6695b (patch) | |
tree | 8ac8e22be173e446bbbbecf7b97ab30a0c1f8f33 /os/kernel/src | |
parent | c96e390f3a5b4bd7d5afcf0607cf3e072a812c04 (diff) | |
download | ChibiOS-6e9303ee9cf662dc26a9aa0b6f3a8e2d0af6695b.tar.gz ChibiOS-6e9303ee9cf662dc26a9aa0b6f3a8e2d0af6695b.tar.bz2 ChibiOS-6e9303ee9cf662dc26a9aa0b6f3a8e2d0af6695b.zip |
Improved time range check in the kernel.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6401 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src')
-rw-r--r-- | os/kernel/src/chvt.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/os/kernel/src/chvt.c b/os/kernel/src/chvt.c index a8e3ce499..f2d6cd697 100644 --- a/os/kernel/src/chvt.c +++ b/os/kernel/src/chvt.c @@ -111,24 +111,4 @@ void chVTResetI(VirtualTimer *vtp) { vtp->vt_func = (vtfunc_t)NULL;
}
-/**
- * @brief Checks if the current system time is within the specified time
- * window.
- * @note When start==end then the function returns always true because the
- * whole time range is specified.
- *
- * @param[in] start the start of the time window (inclusive)
- * @param[in] end the end of the time window (non inclusive)
- * @retval TRUE current time within the specified time window.
- * @retval FALSE current time not within the specified time window.
- *
- * @api
- */
-bool_t chTimeIsWithin(systime_t start, systime_t end) {
-
- systime_t time = chTimeNow();
- return end > start ? (time >= start) && (time < end) :
- (time >= start) || (time < end);
-}
-
/** @} */
|