aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal/os-less/ARMCMx/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/osal/os-less/ARMCMx/osal.h')
-rw-r--r--os/hal/osal/os-less/ARMCMx/osal.h8
1 files changed, 4 insertions, 4 deletions
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))
/** @} */