pub fn new(regs: R, mode: TimerMode, freq: f32, compare_num: usize) -> Self {
        regs.mode.write(|w| unsafe { w.bits(mode as u8 as u32) });
        let mut result = Self { regs };
        result.bit_mode(TimerBitMode::B32);

        result.set_freq(freq, compare_num);

        result
    }
/// Initialize a Timer peripheral. `freq` is in Hz. By default, configures in 32-bit mode.
Initialize a Timer peripheral. `freq` is in Hz. By default, configures in 32-bit mode.
Initialize a Timer peripheral . ` freq ` is in Hz . By default configures in 32 - bit mode .
pub fn new(regs: R, mode: TimerMode, freq: f32, compare_num: usize) -> Self {
        regs.mode.write(|w| unsafe { w.bits(mode as u8 as u32) });
        let mut result = Self { regs };
        result.bit_mode(TimerBitMode::B32);
        result.set_freq(freq, compare_num);
        result
    }
pub fn new ( regs : R , mode : TimerMode , freq : f32 , compare_num : usize ) -> Self { regs . mode . write ( | w | unsafe { w . bits ( mode as u8 as u32 ) } ) ; let mut result = Self { regs } ; result . bit_mode ( TimerBitMode :: B32 ) ; result . set_freq ( freq , compare_num ) ; result }
Initialize a Timer peripheral.
Initialize a Timer peripheral .
regs
R
mode
TimerMode
freq
f32
compare_num
usize
regs
R
mode
TimerMode
freq
f32
compare_num
usize