aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-10-18 09:29:53 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-10-18 09:29:53 +0000
commitc2184c8d9b7ee7ec141403eba0655e602a117b2b (patch)
treea3d88e794be668fa7a5c68e62db2b6f79964a38c /os/rt/include
parentc44074d076c53e64562dec1139347e8e326fbc49 (diff)
downloadChibiOS-c2184c8d9b7ee7ec141403eba0655e602a117b2b.tar.gz
ChibiOS-c2184c8d9b7ee7ec141403eba0655e602a117b2b.tar.bz2
ChibiOS-c2184c8d9b7ee7ec141403eba0655e602a117b2b.zip
Typos and one error.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10847 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/chtime.h13
-rw-r--r--os/rt/include/chvt.h2
2 files changed, 7 insertions, 8 deletions
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());
}
/**