git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7120 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-08-04 13:12:00 +00:00
parent 6e81c34c57
commit 3e71eee97c
1 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@
*
* @api
*/
#define ST2S(n) ((((n) - 1UL) / CH_CFG_ST_FREQUENCY) + 1UL)
#define ST2S(n) (((((n) - 1UL) * 1UL) / CH_CFG_ST_FREQUENCY) + 1UL)
/**
* @brief System ticks to milliseconds.
@ -158,7 +158,7 @@
*
* @api
*/
#define ST2MS(n) ((((n) - 1UL) / (CH_CFG_ST_FREQUENCY / 1000UL)) + 1UL)
#define ST2MS(n) (((((n) - 1UL) * 1000UL) / CH_CFG_ST_FREQUENCY) + 1UL)
/**
* @brief System ticks to microseconds.
@ -170,7 +170,7 @@
*
* @api
*/
#define ST2US(n) ((((n) - 1UL) / (CH_CFG_ST_FREQUENCY / 1000000UL)) + 1UL)
#define ST2US(n) (((((n) - 1UL) * 1000000UL) / CH_CFG_ST_FREQUENCY) + 1UL)
/** @} */
/*===========================================================================*/