pub fn timer_clock_with_prescaler(
        &self,
        period: u16,
        mode: timer::PwmWorkingMode,
        prescaler: u8,
    ) -> timer::TimerClockConfig {
        timer::TimerClockConfig::with_prescaler(self, period, mode, prescaler)
    }
Get a timer clock configuration with the given prescaler.

The resulting timer frequency depends on the chosen
[`timer::PwmWorkingMode`].

#### `PwmWorkingMode::Increase` or `PwmWorkingMode::Decrease`
`timer_frequency = peripheral_clock / (prescaler + 1) / (period + 1)`
#### `PwmWorkingMode::UpDown`
`timer_frequency = peripheral_clock / (prescaler + 1) / (2 * period)`
esp-hal/src/mcpwm/mod.rs