Open mikepurvis opened 8 years ago
I'll add this as part of a more general feature class to control the break functionality offered by some of the timers. I guess it's a safety feature that the MOE
bit is initialized low after reset so you have to know about it even if you're not using the break feature that it was designed to support.
Mike - see the timer_pwm_break
demo. The call you want is timer.enableMainOutput();
that you get from the UnlockedTimerBreakFeature
template.
Calling this function is part of the deprecated
initCompare
scheme, but there's no way to do it using the feature classes.This breaks initializing TIM1/8 as h-bridge motor controllers. Here's what you end up having to do:
With a feature class for enabling PWM output, the static function and oddball constructor call would be able to go away.