pub fn disable_interrupt(&mut self, compare_num: usize) {
        self.regs.intenclr.write(|w| match compare_num {
            0 => w.compare0().clear(),
            1 => w.compare1().clear(),
            2 => w.compare2().clear(),
            3 => w.compare3().clear(),
            _ => panic!("compare number must be 0 - 5"),
        });
        // todo: compare4 and 5 for the other timers??
    }
/// Disable an interrupt. (Note: This calls the INTENCLR register).
Disable an interrupt. (Note: This calls the INTENCLR register).
Disable an interrupt . ( Note : This calls the INTENCLR register ) .
pub fn disable_interrupt(&mut self, compare_num: usize) {
        self.regs.intenclr.write(|w| match compare_num {
            0 => w.compare0().clear(),
            1 => w.compare1().clear(),
            2 => w.compare2().clear(),
            3 => w.compare3().clear(),
            _ => panic!("compare number must be 0 - 5"),
        });
        // todo: compare4 and 5 for the other timers??
    }
pub fn disable_interrupt ( & mut self , compare_num : usize ) { self . regs . intenclr . write ( | w | match compare_num { 0 => w . compare0 ( ) . clear ( ) , 1 => w . compare1 ( ) . clear ( ) , 2 => w . compare2 ( ) . clear ( ) , 3 => w . compare3 ( ) . clear ( ) , _ => panic ! ( " " ) , } ) ; // todo: compare4 and 5 for the other timers?? }
Disable an interrupt.
Disable an interrupt .
&mut self
compare_num
usize
&mut self
compare_num
usize