Function frequency_for_prescale
Source pub fn frequency_for_prescale(prescale: u8, osc_hz: u32) -> f32
Expand description
Computes the PWM frequency a PRE_SCALE value produces.
§Arguments
prescale - the PRE_SCALE register value.
osc_hz - the oscillator frequency.
§Returns
The output frequency in hertz.