STM32 PWM and ADC: Add some bits that should have been cleared. From Martin Lederhilger

This commit is contained in:
Gregory Nutt 2013-10-24 08:27:09 -06:00
parent f10069907a
commit ec84f19454
2 changed files with 2 additions and 2 deletions

View File

@ -772,7 +772,7 @@ static int adc_timinit(FAR struct stm32_dev_s *priv)
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
else
{
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP | GTIM_CCER_CC4NP);
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP);
}
#endif

View File

@ -896,7 +896,7 @@ static int pwm_timer(FAR struct stm32_pwmtimer_s *priv,
#endif
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
{
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP | GTIM_CCER_CC4NP);
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP);
}
#endif