MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@13980 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
73db4eb94a
commit
64940cb4a7
|
@ -119,11 +119,11 @@
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Type of a threads queue.
|
* @brief Structure representing a threads queue.
|
||||||
*/
|
*/
|
||||||
typedef struct ch_threads_queue {
|
struct ch_threads_queue {
|
||||||
ch_queue_t queue; /**< @brief Threads queue header. */
|
ch_queue_t queue; /**< @brief Threads queue header. */
|
||||||
} threads_queue_t;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Structure representing a thread.
|
* @brief Structure representing a thread.
|
||||||
|
@ -301,11 +301,6 @@ struct ch_thread {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Type of a Virtual Timer callback function.
|
|
||||||
*/
|
|
||||||
typedef void (*vtfunc_t)(void *p);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Type of a Virtual Timer structure.
|
* @brief Type of a Virtual Timer structure.
|
||||||
*/
|
*/
|
||||||
|
@ -321,23 +316,23 @@ struct ch_delta_list {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Type of a Virtual Timer.
|
* @brief Structure representing a Virtual Timer.
|
||||||
*/
|
*/
|
||||||
typedef struct ch_virtual_timer {
|
struct ch_virtual_timer {
|
||||||
delta_list_t dlist; /**< @brief Delta list element. */
|
delta_list_t dlist; /**< @brief Delta list element. */
|
||||||
vtfunc_t func; /**< @brief Timer callback function
|
vtfunc_t func; /**< @brief Timer callback function
|
||||||
pointer. */
|
pointer. */
|
||||||
void *par; /**< @brief Timer callback function
|
void *par; /**< @brief Timer callback function
|
||||||
parameter. */
|
parameter. */
|
||||||
} virtual_timer_t;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Type of virtual timers list header.
|
* @brief Structure representing a virtual timers list header.
|
||||||
* @note The timers list is implemented as a double link bidirectional list
|
* @note The timers list is implemented as a double link bidirectional list
|
||||||
* in order to make the unlink time constant, the reset of a virtual
|
* in order to make the unlink time constant, the reset of a virtual
|
||||||
* timer is often used in the code.
|
* timer is often used in the code.
|
||||||
*/
|
*/
|
||||||
typedef struct ch_virtual_timers_list {
|
struct ch_virtual_timers_list {
|
||||||
delta_list_t dlist; /**< @brief Delta list header. */
|
delta_list_t dlist; /**< @brief Delta list header. */
|
||||||
#if (CH_CFG_ST_TIMEDELTA == 0) || defined(__DOXYGEN__)
|
#if (CH_CFG_ST_TIMEDELTA == 0) || defined(__DOXYGEN__)
|
||||||
volatile systime_t systime; /**< @brief System Time counter. */
|
volatile systime_t systime; /**< @brief System Time counter. */
|
||||||
|
@ -349,7 +344,7 @@ typedef struct ch_virtual_timers_list {
|
||||||
systime_t lasttime; /**< @brief System time of the last
|
systime_t lasttime; /**< @brief System time of the last
|
||||||
tick event. */
|
tick event. */
|
||||||
#endif
|
#endif
|
||||||
} virtual_timers_list_t;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @extends threads_queue_t
|
* @extends threads_queue_t
|
||||||
|
|
Loading…
Reference in New Issue