From 202661e81e18dad821a1855caf39add96440f6cf Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 4 Nov 2013 13:35:10 +0000 Subject: 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 --- os/nil/src/nil.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'os/nil/src') diff --git a/os/nil/src/nil.c b/os/nil/src/nil.c index 5d9a660f7..9141129cb 100644 --- a/os/nil/src/nil.c +++ b/os/nil/src/nil.c @@ -466,26 +466,6 @@ void chThdSleepUntil(systime_t time) { chSysUnlock(); } -/** - * @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 Performs a wait operation on a semaphore with timeout specification. * -- cgit v1.2.3