git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@5815 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2013-06-04 14:36:20 +00:00
parent 35c54ef4cb
commit bc38934ca2
2 changed files with 7 additions and 3 deletions

View File

@ -50,7 +50,8 @@
* *
* @api * @api
*/ */
#define S2ST(sec) ((systime_t)((sec) * CH_FREQUENCY)) #define S2ST(sec) \
((systime_t)((sec) * CH_FREQUENCY))
/** /**
* @brief Milliseconds to system ticks. * @brief Milliseconds to system ticks.
@ -62,7 +63,8 @@
* *
* @api * @api
*/ */
#define MS2ST(msec) ((systime_t)(((((msec) - 1L) * CH_FREQUENCY) / 1000L) + 1L)) #define MS2ST(msec) \
((systime_t)((((msec) * CH_FREQUENCY - 1L) / 1000L) + 1L))
/** /**
* @brief Microseconds to system ticks. * @brief Microseconds to system ticks.
@ -74,7 +76,8 @@
* *
* @api * @api
*/ */
#define US2ST(usec) ((systime_t)(((((usec) - 1L) * CH_FREQUENCY) / 1000000L) + 1L)) #define US2ST(usec) \
((systime_t)((((usec) * CH_FREQUENCY - 1L) / 1000000L) + 1L))
/** @} */ /** @} */
/** /**

View File

@ -79,6 +79,7 @@
***************************************************************************** *****************************************************************************
*** 2.4.4 *** *** 2.4.4 ***
- FIX: Fixed MS2ST() and US2ST() macros error (bug #415).
- FIX: Fixed STM32_PLLI2SCLKOUT miscalculated (bug #413). - FIX: Fixed STM32_PLLI2SCLKOUT miscalculated (bug #413).
- FIX: Fixed STM32 wrong peripherals reset procedure (bug #409). - FIX: Fixed STM32 wrong peripherals reset procedure (bug #409).
- FIX: Fixed wrong Keil project in ARMCM3-STM32F107 demo (bug #408). - FIX: Fixed wrong Keil project in ARMCM3-STM32F107 demo (bug #408).