pub struct Nvic { /* private fields */ }Implementations§
Source§impl Nvic
impl Nvic
Sourcepub fn set_priority(&mut self, it: Interrupt, priority: u8, disable: bool)
pub fn set_priority(&mut self, it: Interrupt, priority: u8, disable: bool)
§Parameters
it: interrupt linepriority: includes 0 ~ 15, The smaller the number, the higher the priority. It combines preemption and sub priority based on the grouping.disable: It is recommended to disable the interrupt, in case it gets activated before you’re ready. It will be enabled automatically once you set the interrupt callback. If you set it tofalse, the enable state will not change.