diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-10 11:25:29 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-10 11:25:29 +0000 |
commit | ff109ac9e64f0f107a21343cd82d603b04c35aaf (patch) | |
tree | e30c50c051bf1887c301cacdb9056af6c9bee966 /os/hal/osal | |
parent | 87bae60d9dc02e8d415f490acf416e6207c86f4b (diff) | |
download | ChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.tar.gz ChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.tar.bz2 ChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.zip |
MISRA-related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11473 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal')
-rw-r--r-- | os/hal/osal/nil/osal.h | 2 | ||||
-rw-r--r-- | os/hal/osal/os-less/ARMCMx/osal.c | 8 | ||||
-rw-r--r-- | os/hal/osal/os-less/ARMCMx/osal.h | 8 | ||||
-rw-r--r-- | os/hal/osal/rt/osal.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/osal/nil/osal.h b/os/hal/osal/nil/osal.h index 9fd0b4192..6cc0325d9 100644 --- a/os/hal/osal/nil/osal.h +++ b/os/hal/osal/nil/osal.h @@ -162,7 +162,7 @@ typedef uint32_t systime_t; #if 0
/**
- * @brief Type of system time counter.
+ * @brief Type of system time interval.
*/
typedef uint32_t sysinterval_t;
#endif
diff --git a/os/hal/osal/os-less/ARMCMx/osal.c b/os/hal/osal/os-less/ARMCMx/osal.c index 3f8a7ea62..5c62069e4 100644 --- a/os/hal/osal/os-less/ARMCMx/osal.c +++ b/os/hal/osal/os-less/ARMCMx/osal.c @@ -162,7 +162,7 @@ systime_t osalOsGetSystemTimeX(void) { *
* @sclass
*/
-void osalThreadSleepS(systime_t time) {
+void osalThreadSleepS(sysinterval_t time) {
virtual_timer_t vt;
thread_reference_t tr;
@@ -183,7 +183,7 @@ void osalThreadSleepS(systime_t time) { *
* @api
*/
-void osalThreadSleep(systime_t time) {
+void osalThreadSleep(sysinterval_t time) {
osalSysLock();
osalThreadSleepS(time);
@@ -236,7 +236,7 @@ msg_t osalThreadSuspendS(thread_reference_t *trp) { *
* @sclass
*/
-msg_t osalThreadSuspendTimeoutS(thread_reference_t *trp, systime_t timeout) {
+msg_t osalThreadSuspendTimeoutS(thread_reference_t *trp, sysinterval_t timeout) {
msg_t msg;
virtual_timer_t vt;
@@ -316,7 +316,7 @@ void osalThreadResumeS(thread_reference_t *trp, msg_t msg) { *
* @sclass
*/
-msg_t osalThreadEnqueueTimeoutS(threads_queue_t *tqp, systime_t timeout) {
+msg_t osalThreadEnqueueTimeoutS(threads_queue_t *tqp, sysinterval_t timeout) {
msg_t msg;
virtual_timer_t vt;
diff --git a/os/hal/osal/os-less/ARMCMx/osal.h b/os/hal/osal/os-less/ARMCMx/osal.h index 1bf98ab32..248af8831 100644 --- a/os/hal/osal/os-less/ARMCMx/osal.h +++ b/os/hal/osal/os-less/ARMCMx/osal.h @@ -177,7 +177,7 @@ typedef int32_t msg_t; typedef uint32_t systime_t;
/**
- * @brief Type of system time counter.
+ * @brief Type of system time interval.
*/
typedef uint32_t sysinterval_t;
@@ -366,7 +366,7 @@ typedef struct { * @api
*/
#define OSAL_S2I(secs) \
- ((systime_t)((uint32_t)(secs) * (uint32_t)OSAL_ST_FREQUENCY))
+ ((sysinterval_t)((uint32_t)(secs) * (uint32_t)OSAL_ST_FREQUENCY))
/**
* @brief Milliseconds to system ticks.
@@ -379,7 +379,7 @@ typedef struct { * @api
*/
#define OSAL_MS2I(msecs) \
- ((systime_t)((((((uint32_t)(msecs)) * \
+ ((sysinterval_t)((((((uint32_t)(msecs)) * \
((uint32_t)OSAL_ST_FREQUENCY)) - 1UL) / 1000UL) + 1UL))
/**
@@ -393,7 +393,7 @@ typedef struct { * @api
*/
#define OSAL_US2I(usecs) \
- ((systime_t)((((((uint32_t)(usecs)) * \
+ ((sysinterval_t)((((((uint32_t)(usecs)) * \
((uint32_t)OSAL_ST_FREQUENCY)) - 1UL) / 1000000UL) + 1UL))
/** @} */
diff --git a/os/hal/osal/rt/osal.h b/os/hal/osal/rt/osal.h index 75dc19c45..73e8e3fa9 100644 --- a/os/hal/osal/rt/osal.h +++ b/os/hal/osal/rt/osal.h @@ -150,7 +150,7 @@ typedef uint32_t systime_t; #if 0
/**
- * @brief Type of system time counter.
+ * @brief Type of system time interval.
*/
typedef uint32_t sysinterval_t;
#endif
|