Fixed bug #415.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5810 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
cbce43930a
commit
fb0563fbd2
|
@ -43,7 +43,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.
|
||||||
|
@ -55,8 +56,8 @@
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define MS2ST(msec) ((systime_t)(((((msec) - 1L) * CH_FREQUENCY) / \
|
#define MS2ST(msec) \
|
||||||
1000L) + 1L))
|
((systime_t)((((msec) * CH_FREQUENCY - 1L) / 1000L) + 1L))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Microseconds to system ticks.
|
* @brief Microseconds to system ticks.
|
||||||
|
@ -68,8 +69,8 @@
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define US2ST(usec) ((systime_t)(((((usec) - 1L) * CH_FREQUENCY) / \
|
#define US2ST(usec) \
|
||||||
1000000L) + 1L))
|
((systime_t)((((usec) * CH_FREQUENCY - 1L) / 1000000L) + 1L))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -89,6 +89,8 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.5.2 ***
|
*** 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 lwipthread.h should explicitly include lwip/opts.h (bug #414).
|
||||||
- FIX: Fixed STM32_PLLI2SCLKOUT miscalculated (bug #413)(backported to 2.4.4).
|
- 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).
|
- FIX: Fixed wrong RTC vector name in STM32F1/F4/L1 EXT drivers (bug #412).
|
||||||
|
|
|
@ -152,6 +152,7 @@ int main(void) {
|
||||||
*/
|
*/
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
chThdSleepMilliseconds(500);
|
chThdSleepMilliseconds(500);
|
||||||
|
palTogglePad(PORT11, P11_LED2);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue