aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-04 13:35:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-04 13:35:10 +0000
commit202661e81e18dad821a1855caf39add96440f6cf (patch)
tree2dab0a7863bdc1d504b730db2c936a6d57872763 /os/rt/src
parent3d2ebf13f5b01f802fae0afec8651cde4c121be8 (diff)
downloadChibiOS-202661e81e18dad821a1855caf39add96440f6cf.tar.gz
ChibiOS-202661e81e18dad821a1855caf39add96440f6cf.tar.bz2
ChibiOS-202661e81e18dad821a1855caf39add96440f6cf.zip
Improved time range functions. Reduced size for NIL when tickless mode is used.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6416 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src')
-rw-r--r--os/rt/src/chvt.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/os/rt/src/chvt.c b/os/rt/src/chvt.c
index 6139abd53..e87c2d12c 100644
--- a/os/rt/src/chvt.c
+++ b/os/rt/src/chvt.c
@@ -71,26 +71,6 @@ void _vt_init(void) {
}
/**
- * @brief Checks if the specified time is within the specified time window.
- * @note When start==end then the function returns always true because the
- * whole time range is specified.
- * @note This function can be called from any context.
- *
- * @param[in] time the time to be verified
- * @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.
- *
- * @xclass
- */
-bool chVTIsTimeWithinX(systime_t time, systime_t start, systime_t end) {
-
- return end > start ? (time >= start) && (time < end) :
- (time >= start) || (time < end);
-}
-
-/**
* @brief Enables a virtual timer.
* @details The timer is enabled and programmed to trigger after the delay
* specified as parameter.