/// Turns on internal interrupts. Call this after you have finished
/// initializing the rest of your peripherals but before you start
/// issuing RPCs against the wifi chip.
Turns on internal interrupts. Call this after you have finished
initializing the rest of your peripherals but before you start
issuing RPCs against the wifi chip.
Turns on internal interrupts . Call this after you have finished initializing the rest of your peripherals but before you start issuing RPCs against the wifi chip .
pub fn enable(&mut self, _cs: &CriticalSection, nvic: &mut NVIC) {
        unsafe {
            nvic.set_priority(interrupt::SERCOM0_0, 1);
            NVIC::unmask(interrupt::SERCOM0_0);
            nvic.set_priority(interrupt::SERCOM0_2, 1);
            NVIC::unmask(interrupt::SERCOM0_2);
        }
        self.uart.enable_interrupts(uart::Flags::RXC);
    }
pub fn enable ( & mut self , _cs : & CriticalSection , nvic : & mut NVIC ) { unsafe { nvic . set_priority ( interrupt :: SERCOM0_0 , 1 ) ; NVIC :: unmask ( interrupt :: SERCOM0_0 ) ; nvic . set_priority ( interrupt :: SERCOM0_2 , 1 ) ; NVIC :: unmask ( interrupt :: SERCOM0_2 ) ; } self . uart . enable_interrupts ( uart :: Flags :: RXC ) ; }
Turns on internal interrupts.
Turns on internal interrupts .
&mut self
_cs
&CriticalSection
nvic
&mut NVIC