Merged in slorquet/nuttx/stm32l4_timers_fix (pull request #145)

Multiple stm32l4 timer fixes
This commit is contained in:
Gregory Nutt 2016-10-14 14:00:12 +00:00
commit c77af11b0d
2 changed files with 3 additions and 3 deletions

View File

@ -1206,7 +1206,7 @@ static int stm32l4pwm_timer(FAR struct stm32l4_pwmtimer_s *priv,
*/
ccer &= ~(ATIM_CCER_CC1NE | ATIM_CCER_CC1NP | ATIM_CCER_CC2NE | ATIM_CCER_CC2NP |
ATIM_CCER_CC3NE | ATIM_CCER_CC3NP | ATIM_CCER_CC4NP);
ATIM_CCER_CC3NE | ATIM_CCER_CC3NP);
/* Reset the output compare and output compare N IDLE State */
@ -1225,7 +1225,7 @@ static int stm32l4pwm_timer(FAR struct stm32l4_pwmtimer_s *priv,
else
#endif
{
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP | ATIM_CCER_CC4NP);
ccer &= ~(GTIM_CCER_CC1NP | GTIM_CCER_CC2NP | GTIM_CCER_CC3NP);
}
/* Save the modified register values */

View File

@ -422,7 +422,7 @@
PWM_MAX(PWM_TIM8_NCHANNELS, \
PWM_MAX(PWM_TIM15_NCHANNELS, \
PWM_MAX(PWM_TIM16_NCHANNELS, \
PWM_TIM17_NCHANNELS))))))))))))))
PWM_TIM17_NCHANNELS))))))))
#else