pub fn button_debounce_pins(&mut self, debounce_pins: &[pin::ExternalInterruptID]) {
        self.eic.dprescaler.modify(|_, w| {
            w.tickon().set_bit()    // Use the 32k clock for debouncing.
            .states0().set_bit()    // Require 7 0 samples to see a falling edge.
            .states1().set_bit()    // Require 7 1 samples to see a rising edge.
            .prescaler0().div16()
            .prescaler1().div16()
        });

        let mut debounceen: u32 = 0;
        for pin in debounce_pins {
            debounceen |= 1 << *pin as u32;
        }
        self.eic.debouncen.write(|w| unsafe { w.bits(debounceen) });
    }
/// button_debounce_pins enables debouncing for the
/// specified pins, with a configuration appropriate
/// for debouncing physical buttons.
button_debounce_pins enables debouncing for the
specified pins, with a configuration appropriate
for debouncing physical buttons.
button_debounce_pins enables debouncing for the specified pins with a configuration appropriate for debouncing physical buttons .
pub fn button_debounce_pins(&mut self, debounce_pins: &[pin::ExternalInterruptID]) {
        self.eic.dprescaler.modify(|_, w| {
            w.tickon().set_bit()    // Use the 32k clock for debouncing.
            .states0().set_bit()    // Require 7 0 samples to see a falling edge.
            .states1().set_bit()    // Require 7 1 samples to see a rising edge.
            .prescaler0().div16()
            .prescaler1().div16()
        });
        let mut debounceen: u32 = 0;
        for pin in debounce_pins {
            debounceen |= 1 << *pin as u32;
        }
        self.eic.debouncen.write(|w| unsafe { w.bits(debounceen) });
    }
pub fn button_debounce_pins ( & mut self , debounce_pins : & [ pin :: ExternalInterruptID ] ) { self . eic . dprescaler . modify ( | _ , w | { w . tickon ( ) . set_bit ( ) // Use the 32k clock for debouncing. . states0 ( ) . set_bit ( ) // Require 7 0 samples to see a falling edge. . states1 ( ) . set_bit ( ) // Require 7 1 samples to see a rising edge. . prescaler0 ( ) . div16 ( ) . prescaler1 ( ) . div16 ( ) } ) ; let mut debounceen : u32 = 0 ; for pin in debounce_pins { debounceen |= 1 << * pin as u32 ; } self . eic . debouncen . write ( | w | unsafe { w . bits ( debounceen ) } ) ; }
button_debounce_pins enables debouncing for the
specified pins, with a configuration appropriate
for debouncing physical buttons.
button_debounce_pins enables debouncing for the specified pins with a configuration appropriate for debouncing physical buttons .
&mut self
debounce_pins
&[pin::ExternalInterruptID]
&mut self
debounce_pins
&[pin::ExternalInterruptID]