diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-11-05 07:20:21 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-11-05 07:20:21 +0000 |
commit | 47b464519d4227459677a1b86838d67f7090b83c (patch) | |
tree | 4ec7c4e0a32160057a22244e9be8e4e669aa3c50 /os/hal/osal/lib/osal_vt.h | |
parent | d37c7dbd2db28255bc49d512b42ce39c8d272a5a (diff) | |
download | ChibiOS-47b464519d4227459677a1b86838d67f7090b83c.tar.gz ChibiOS-47b464519d4227459677a1b86838d67f7090b83c.tar.bz2 ChibiOS-47b464519d4227459677a1b86838d67f7090b83c.zip |
Updated OS-less osal for Cortex-M.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10948 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal/lib/osal_vt.h')
-rw-r--r-- | os/hal/osal/lib/osal_vt.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/os/hal/osal/lib/osal_vt.h b/os/hal/osal/lib/osal_vt.h index e46365c37..14e54efc8 100644 --- a/os/hal/osal/lib/osal_vt.h +++ b/os/hal/osal/lib/osal_vt.h @@ -29,14 +29,6 @@ /* Module constants. */
/*===========================================================================*/
-/**
- * @name Special time constants
- * @{
- */
-#define TIME_IMMEDIATE ((systime_t)0)
-#define TIME_INFINITE ((systime_t)-1)
-/** @} */
-
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -73,7 +65,7 @@ typedef struct { list. */
virtual_timer_t *vt_prev; /**< @brief Last timer in the timers
list. */
- systime_t vt_time; /**< @brief Must be initialized to -1. */
+ sysinterval_t vt_delta; /**< @brief Must be initialized to -1. */
volatile systime_t vt_systime; /**< @brief System Time counter. */
} virtual_timers_list_t;
@@ -90,7 +82,7 @@ struct virtual_timer { list. */
virtual_timer_t *vt_prev; /**< @brief Previous timer in the timers
list. */
- systime_t vt_time; /**< @brief Time delta before timeout. */
+ sysinterval_t vt_delta; /**< @brief Time delta before timeout. */
vtfunc_t vt_func; /**< @brief Timer callback function
pointer. */
void *vt_par; /**< @brief Timer callback function
@@ -115,7 +107,7 @@ extern "C" { void vtInit(void);
bool vtIsArmedI(virtual_timer_t *vtp);
void vtDoTickI(void);
- void vtSetI(virtual_timer_t *vtp, systime_t time,
+ void vtSetI(virtual_timer_t *vtp, sysinterval_t timeout,
vtfunc_t vtfunc, void *par);
void vtResetI(virtual_timer_t *vtp);
#ifdef __cplusplus
|