Silenced a MISRA by adding parenthesis.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8080 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
df609a3e66
commit
47d047ed99
|
@ -618,8 +618,8 @@ struct nil_system {
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define MS2ST(msec) \
|
#define MS2ST(msec) \
|
||||||
((systime_t)((((uint32_t)(msec)) * \
|
((systime_t)(((((uint32_t)(msec)) * \
|
||||||
((uint32_t)NIL_CFG_ST_FREQUENCY) + 999UL) / 1000UL))
|
((uint32_t)NIL_CFG_ST_FREQUENCY)) + 999UL) / 1000UL))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Microseconds to system ticks.
|
* @brief Microseconds to system ticks.
|
||||||
|
@ -632,8 +632,8 @@ struct nil_system {
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define US2ST(usec) \
|
#define US2ST(usec) \
|
||||||
((systime_t)((((uint32_t)(usec)) * \
|
((systime_t)(((((uint32_t)(usec)) * \
|
||||||
((uint32_t)NIL_CFG_ST_FREQUENCY) + 999999UL) / 1000000UL))
|
((uint32_t)NIL_CFG_ST_FREQUENCY)) + 999999UL) / 1000000UL))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -118,8 +118,8 @@
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define MS2ST(msec) \
|
#define MS2ST(msec) \
|
||||||
((systime_t)((((uint32_t)(msec)) * \
|
((systime_t)(((((uint32_t)(msec)) * \
|
||||||
((uint32_t)CH_CFG_ST_FREQUENCY) + 999UL) / 1000UL))
|
((uint32_t)CH_CFG_ST_FREQUENCY)) + 999UL) / 1000UL))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Microseconds to system ticks.
|
* @brief Microseconds to system ticks.
|
||||||
|
@ -132,8 +132,8 @@
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define US2ST(usec) \
|
#define US2ST(usec) \
|
||||||
((systime_t)((((uint32_t)(usec)) * \
|
((systime_t)(((((uint32_t)(usec)) * \
|
||||||
((uint32_t)CH_CFG_ST_FREQUENCY) + 999999UL) / 1000000UL))
|
((uint32_t)CH_CFG_ST_FREQUENCY)) + 999999UL) / 1000000UL))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System ticks to seconds.
|
* @brief System ticks to seconds.
|
||||||
|
|
Loading…
Reference in New Issue