Fixed bug 3458947.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3643 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2011-12-20 18:35:18 +00:00
parent 8fc9de2fdb
commit cefffe9013
2 changed files with 8 additions and 6 deletions

View File

@ -138,7 +138,7 @@ CH_IRQ_HANDLER(TIM1_UP_IRQHandler) {
CH_IRQ_PROLOGUE(); CH_IRQ_PROLOGUE();
TIM1->SR = ~TIM_SR_UIF; STM32_TIM1->SR = ~TIM_SR_UIF;
PWMD1.config->callback(&PWMD1); PWMD1.config->callback(&PWMD1);
CH_IRQ_EPILOGUE(); CH_IRQ_EPILOGUE();
@ -157,8 +157,9 @@ CH_IRQ_HANDLER(TIM1_CC_IRQHandler) {
CH_IRQ_PROLOGUE(); CH_IRQ_PROLOGUE();
sr = TIM1->SR & TIM1->DIER; sr = STM32_TIM1->SR & STM32_TIM1->DIER;
TIM1->SR = ~(TIM_SR_CC1IF | TIM_SR_CC2IF | TIM_SR_CC3IF | TIM_SR_CC4IF); STM32_TIM1->SR = ~(TIM_SR_CC1IF | TIM_SR_CC2IF |
TIM_SR_CC3IF | TIM_SR_CC4IF);
if ((sr & TIM_SR_CC1IF) != 0) if ((sr & TIM_SR_CC1IF) != 0)
PWMD1.config->channels[0].callback(&PWMD1); PWMD1.config->channels[0].callback(&PWMD1);
if ((sr & TIM_SR_CC2IF) != 0) if ((sr & TIM_SR_CC2IF) != 0)
@ -249,7 +250,7 @@ CH_IRQ_HANDLER(TIM8_UP_IRQHandler) {
CH_IRQ_PROLOGUE(); CH_IRQ_PROLOGUE();
TIM8->SR = ~TIM_SR_UIF; STM32_TIM8->SR = ~TIM_SR_UIF;
PWMD1.config->callback(&PWMD8); PWMD1.config->callback(&PWMD8);
CH_IRQ_EPILOGUE(); CH_IRQ_EPILOGUE();
@ -268,8 +269,8 @@ CH_IRQ_HANDLER(TIM8_CC_IRQHandler) {
CH_IRQ_PROLOGUE(); CH_IRQ_PROLOGUE();
sr = TIM8->SR & TIM8->DIER; sr = STM32_TIM8->SR & STM32_TIM8->DIER;
TIM8->SR = ~(TIM_SR_CC1IF | TIM_SR_CC2IF | TIM_SR_CC3IF | TIM_SR_CC4IF); STM32_TIM8->SR = ~(TIM_SR_CC1IF | TIM_SR_CC2IF | TIM_SR_CC3IF | TIM_SR_CC4IF);
if ((sr & TIM_SR_CC1IF) != 0) if ((sr & TIM_SR_CC1IF) != 0)
PWMD8.config->channels[0].callback(&PWMD8); PWMD8.config->channels[0].callback(&PWMD8);
if ((sr & TIM_SR_CC2IF) != 0) if ((sr & TIM_SR_CC2IF) != 0)

View File

@ -74,6 +74,7 @@
***************************************************************************** *****************************************************************************
*** 2.3.5 *** *** 2.3.5 ***
- FIX: Fixed PWM with TIM1 and TIM8 broken in STM32 HAL (bug 3458947).
- FIX: Fixed SYSCFG clock not started in STM32L1/F4 HALs (bug 3449139). - FIX: Fixed SYSCFG clock not started in STM32L1/F4 HALs (bug 3449139).
- FIX: Fixed wrong definitions in STM32L-Discovery board file (bug 3449076). - FIX: Fixed wrong definitions in STM32L-Discovery board file (bug 3449076).
- NEW: Modified the STM32F4-Discovery demo to put critical kernel data - NEW: Modified the STM32F4-Discovery demo to put critical kernel data