Fixed bug 3508758.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4051 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2012-03-19 20:28:31 +00:00
parent 6826e86215
commit bae0692114
2 changed files with 5 additions and 3 deletions

View File

@ -276,7 +276,7 @@ void icu_lld_init(void) {
#if STM32_ICU_USE_TIM8 #if STM32_ICU_USE_TIM8
/* Driver initialization.*/ /* Driver initialization.*/
icuObjectInit(&ICUD8); icuObjectInit(&ICUD8);
ICUD5.tim = STM32_TIM8; ICUD8.tim = STM32_TIM8;
#endif #endif
} }
@ -340,8 +340,8 @@ void icu_lld_start(ICUDriver *icup) {
#endif #endif
#if STM32_ICU_USE_TIM8 #if STM32_ICU_USE_TIM8
if (&ICUD8 == icup) { if (&ICUD8 == icup) {
rccEnableTIM5(FALSE); rccEnableTIM8(FALSE);
rccResetTIM5(); rccResetTIM8();
nvicEnableVector(TIM8_CC_IRQn, nvicEnableVector(TIM8_CC_IRQn,
CORTEX_PRIORITY_MASK(STM32_ICU_TIM8_IRQ_PRIORITY)); CORTEX_PRIORITY_MASK(STM32_ICU_TIM8_IRQ_PRIORITY));
icup->clock = STM32_TIMCLK2; icup->clock = STM32_TIMCLK2;

View File

@ -79,6 +79,8 @@
***************************************************************************** *****************************************************************************
*** 2.4.1 *** *** 2.4.1 ***
- FIX: Fixed STM32 ICUD8 not functional because wrong initialization (bug
3508758).
- FIX: Fixed chMBFetchI does not decrement mb_fullsem (bug 3504450). - FIX: Fixed chMBFetchI does not decrement mb_fullsem (bug 3504450).
- FIX: Fixed USART3 not working on STM32F2/F4 UART driver (bug 3496981). - FIX: Fixed USART3 not working on STM32F2/F4 UART driver (bug 3496981).
- FIX: Fixed stack misalignment on Posix-MacOSX (bug 3495487). - FIX: Fixed stack misalignment on Posix-MacOSX (bug 3495487).