pub fn configure(&mut self, clocks: &Clocks) {
        let clk = TIM::timer_clock(clocks);
        assert!(clk.0 % FREQ == 0);
        let psc = clk.0 / FREQ;
        self.tim.set_prescaler(u16(psc - 1).unwrap());
    }
/// Calculate prescaler depending on `Clocks` state
Calculate prescaler depending on `Clocks` state
Calculate prescaler depending on ` Clocks ` state
pub fn configure(&mut self, clocks: &Clocks) {
        let clk = TIM::timer_clock(clocks);
        assert!(clk.0 % FREQ == 0);
        let psc = clk.0 / FREQ;
        self.tim.set_prescaler(u16(psc - 1).unwrap());
    }
pub fn configure ( & mut self , clocks : & Clocks ) { let clk = TIM :: timer_clock ( clocks ) ; assert ! ( clk 0 FREQ 0 ) ; let psc = clk . 0 / FREQ ; self . tim . set_prescaler ( u16 ( psc - 1 ) . unwrap ( ) ) ; }
Calculate prescaler depending on `Clocks` state
Calculate prescaler depending on ` Clocks ` state
&mut self
clocks
&Clocks
&mut self
clocks
&Clocks