diff options
Diffstat (limited to 'os/hal/templates/osal')
-rw-r--r-- | os/hal/templates/osal/osal.c | 8 | ||||
-rw-r--r-- | os/hal/templates/osal/osal.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/templates/osal/osal.c b/os/hal/templates/osal/osal.c index e83ebcabd..5ec0bae59 100644 --- a/os/hal/templates/osal/osal.c +++ b/os/hal/templates/osal/osal.c @@ -150,7 +150,7 @@ systime_t osalOsGetSystemTimeX(void) { *
* @sclass
*/
-void osalThreadSleepS(systime_t time) {
+void osalThreadSleepS(sysinterval_t time) {
(void)time;
}
@@ -167,7 +167,7 @@ void osalThreadSleepS(systime_t time) { *
* @api
*/
-void osalThreadSleep(systime_t time) {
+void osalThreadSleep(sysinterval_t time) {
(void)time;
}
@@ -208,7 +208,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) {
osalDbgCheck(trp != NULL);
@@ -274,7 +274,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) {
osalDbgCheck(tqp != NULL);
diff --git a/os/hal/templates/osal/osal.h b/os/hal/templates/osal/osal.h index bbaaf69df..620d5fb27 100644 --- a/os/hal/templates/osal/osal.h +++ b/os/hal/templates/osal/osal.h @@ -165,7 +165,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;
@@ -344,7 +344,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.
@@ -357,7 +357,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))
/**
@@ -371,7 +371,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))
/** @} */
|