Macro drone_stm32::vtable [] [src]

macro_rules! vtable {
    ($($(#[$meta:meta])* $vector:ident,)*) => { ... };
}

Initialize a vector table.

Arguments

  • nmi - Non maskable interrupt.
  • hard_fault - All classes of fault.
  • mem_manage - Memory management.
  • bus_fault - Pre-fetch fault, memory access fault.
  • usage_fault - Undefined instruction or illegal state.
  • sv_call - System service call via SWI instruction.
  • debug - Monitor.
  • pend_sv - Pendable request for system service.
  • sys_tick - System tick timer.
  • irqN - External interrupt N. The number of external interrupts depends on the MCU model.

Examples

vtable! {
  #[doc = "Non maskable interrupt."]
  nmi,
  #[doc = "All classes of fault."]
  hard_fault,
  #[doc = "System tick timer."]
  sys_tick,
}