diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-11 15:55:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-11 15:55:40 +0000 |
commit | 47d047ed996b0ab430076a72288dd991f08ae06c (patch) | |
tree | 3a606c16e66c94609b50b8bbf0a4613b558d9c92 /os/nil/include/nil.h | |
parent | df609a3e662ab54f48087627fcbc6ba2083d0941 (diff) | |
download | ChibiOS-47d047ed996b0ab430076a72288dd991f08ae06c.tar.gz ChibiOS-47d047ed996b0ab430076a72288dd991f08ae06c.tar.bz2 ChibiOS-47d047ed996b0ab430076a72288dd991f08ae06c.zip |
Silenced a MISRA by adding parenthesis.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8080 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/include/nil.h')
-rw-r--r-- | os/nil/include/nil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h index 99dfc7f96..0b40e3815 100644 --- a/os/nil/include/nil.h +++ b/os/nil/include/nil.h @@ -618,8 +618,8 @@ struct nil_system { * @api
*/
#define MS2ST(msec) \
- ((systime_t)((((uint32_t)(msec)) * \
- ((uint32_t)NIL_CFG_ST_FREQUENCY) + 999UL) / 1000UL))
+ ((systime_t)(((((uint32_t)(msec)) * \
+ ((uint32_t)NIL_CFG_ST_FREQUENCY)) + 999UL) / 1000UL))
/**
* @brief Microseconds to system ticks.
@@ -632,8 +632,8 @@ struct nil_system { * @api
*/
#define US2ST(usec) \
- ((systime_t)((((uint32_t)(usec)) * \
- ((uint32_t)NIL_CFG_ST_FREQUENCY) + 999999UL) / 1000000UL))
+ ((systime_t)(((((uint32_t)(usec)) * \
+ ((uint32_t)NIL_CFG_ST_FREQUENCY)) + 999999UL) / 1000000UL))
/** @} */
/**
|