git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5810 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-06-04 08:03:01 +00:00
parent cbce43930a
commit fb0563fbd2
3 changed files with 9 additions and 5 deletions

View File

@ -43,7 +43,8 @@
*
* @api
*/
#define S2ST(sec) ((systime_t)((sec) * CH_FREQUENCY))
#define S2ST(sec) \
((systime_t)((sec) * CH_FREQUENCY))
/**
* @brief Milliseconds to system ticks.
@ -55,8 +56,8 @@
*
* @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.
@ -68,8 +69,8 @@
*
* @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

@ -89,6 +89,8 @@
*****************************************************************************
*** 2.5.2 ***
- FIX: Fixed MS2ST() and US2ST() macros error (bug #415)(backported to 2.4.4,
2.2.10, NilRTOS).
- FIX: Fixed lwipthread.h should explicitly include lwip/opts.h (bug #414).
- FIX: Fixed STM32_PLLI2SCLKOUT miscalculated (bug #413)(backported to 2.4.4).
- FIX: Fixed wrong RTC vector name in STM32F1/F4/L1 EXT drivers (bug #412).

View File

@ -152,6 +152,7 @@ int main(void) {
*/
while (TRUE) {
chThdSleepMilliseconds(500);
palTogglePad(PORT11, P11_LED2);
}
return 0;
}