1#![no_std]
6#![recursion_limit = "512"]
9
10use cortexm0p::{initialize_ram_jump_to_main, unhandled_interrupt, CortexM0P, CortexMVariant};
11
12extern "C" {
13    fn _estack();
16}
17
18#[cfg_attr(
19    all(target_arch = "arm", target_os = "none"),
20    link_section = ".vectors"
21)]
22#[cfg_attr(all(target_arch = "arm", target_os = "none"), used)]
24pub static BASE_VECTORS: [unsafe extern "C" fn(); 16] = [
25    _estack,
26    initialize_ram_jump_to_main,
27    unhandled_interrupt,           CortexM0P::HARD_FAULT_HANDLER, unhandled_interrupt,           unhandled_interrupt,           unhandled_interrupt,           unhandled_interrupt,
33    unhandled_interrupt,
34    unhandled_interrupt,
35    unhandled_interrupt,
36    CortexM0P::SVC_HANDLER, unhandled_interrupt,    unhandled_interrupt,
39    unhandled_interrupt,        CortexM0P::SYSTICK_HANDLER, ];
42
43#[cfg_attr(
44    all(target_arch = "arm", target_os = "none"),
45    link_section = ".vectors"
46)]
47#[cfg_attr(all(target_arch = "arm", target_os = "none"), used)]
49pub static IRQS: [unsafe extern "C" fn(); 8] = [CortexM0P::GENERIC_ISR; 8];
50
51pub mod chip;
52pub mod cpuss;
53pub mod gpio;
54pub mod hsiom;
55pub mod peri;
56pub mod scb;
57pub mod srss;
58pub mod tcpwm;