Code: Select all
switch (pwmp->config->channels[2].mode & PWM_OUTPUT_MASK) {
case PWM_OUTPUT_ACTIVE_LOW:
ccer |= STM32_TIM_CCER_CC3P;
// fall through
case PWM_OUTPUT_ACTIVE_HIGH:
ccer |= STM32_TIM_CCER_CC3E;
default:
;
}
I started writing this, when I wasn't sure that this wasn't a bug. I've changed my mind, the fall through is intentional, so we need a bunch of those "fall through" comments.