From c2184c8d9b7ee7ec141403eba0655e602a117b2b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 18 Oct 2017 09:29:53 +0000 Subject: Typos and one error. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10847 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chtime.h | 13 ++++++------- os/rt/include/chvt.h | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'os/rt/include') diff --git a/os/rt/include/chtime.h b/os/rt/include/chtime.h index 701dfb4d5..cd601fee2 100644 --- a/os/rt/include/chtime.h +++ b/os/rt/include/chtime.h @@ -132,7 +132,7 @@ /** * @brief Type of system time. - * @note It is selectable in configuration between 16, 32 or 64 bits + * @note It is selectable in configuration between 16, 32 or 64 bits. */ #if (CH_CFG_ST_RESOLUTION == 64) || defined(__DOXYGEN__) typedef uint64_t systime_t; @@ -144,7 +144,7 @@ typedef uint16_t systime_t; /** * @brief Type of time interval. - * @note It is selectable in configuration between 16, 32 or 64 bits + * @note It is selectable in configuration between 16, 32 or 64 bits. */ #if (CH_CFG_INTERVALS_SIZE == 64) || defined(__DOXYGEN__) typedef uint64_t sysinterval_t; @@ -157,19 +157,19 @@ typedef uint16_t sysinterval_t; #if (CH_CFG_TIME_TYPES_SIZE == 32) || defined(__DOXYGEN__) /** * @brief Type of seconds. - * @note It is selectable in configuration between 16 or 32 bits + * @note It is selectable in configuration between 16 or 32 bits. */ typedef uint32_t time_secs_t; /** * @brief Type of milliseconds. - * @note It is selectable in configuration between 16 or 32 bits + * @note It is selectable in configuration between 16 or 32 bits. */ typedef uint32_t time_msecs_t; /** * @brief Type of microseconds. - * @note It is selectable in configuration between 16 or 32 bits + * @note It is selectable in configuration between 16 or 32 bits. */ typedef uint32_t time_usecs_t; @@ -238,7 +238,7 @@ typedef uint32_t time_conv_t; * integer overflows, make sure your value can be correctly * converted. * - * @param[in] usecs number of microseconds + * @param[in] usecs number of microseconds * @return The number of ticks. * * @api @@ -491,7 +491,6 @@ static inline sysinterval_t chTimeDiffX(systime_t start, systime_t end) { return (sysinterval_t)((systime_t)(end - start)); } - /** * @brief Checks if the specified time is within the specified time range. * @note When start==end then the function returns always true because the diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index e115bec63..2102df345 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -151,7 +151,7 @@ static inline systime_t chVTGetSystemTime(void) { */ static inline sysinterval_t chVTTimeElapsedSinceX(systime_t start) { - return chTimeDiffX(chVTGetSystemTimeX(), start); + return chTimeDiffX(start, chVTGetSystemTimeX()); } /** -- cgit v1.2.3