pub fn with_period_updating_method(self, method: PeriodUpdatingMethod) -> Self {
        Self {
            period_updating_method: method,
            ..self
        }
    }
Set the method for updating the PWM period
esp-hal/src/mcpwm/timer.rs