setup_nvic

Macro setup_nvic 

Source
macro_rules! setup_nvic {
    (
        [ $( ($int:ident, $prio:expr) ),* $(,)? ],
        $cp:ident
    ) => { ... };
}
Expand description

Automates Cortex-M NVIC setup. The second value is NVIC priority; lower is higher priority. Example use: setup_nvic!([ (TIM2, 6), (TIM3, 7), (EXTI0, 4), ], cp);