#![crate_name = "imxrt10xx"]
#![crate_type = "rlib"]
#![no_std]
pub mod chip;
pub mod nvic;
pub mod ccm;
pub mod ccm_analog;
pub mod dcdc;
pub mod dma;
pub mod gpio;
pub mod gpt;
pub mod iomuxc;
pub mod iomuxc_snvs;
pub mod lpi2c;
pub mod lpuart;
use cortexm7::{initialize_ram_jump_to_main, unhandled_interrupt, CortexM7, CortexMVariant};
extern "C" {
fn _estack();
}
#[cfg_attr(
all(target_arch = "arm", target_os = "none"),
link_section = ".vectors"
)]
#[cfg_attr(all(target_arch = "arm", target_os = "none"), used)]
pub static BASE_VECTORS: [unsafe extern "C" fn(); 16] = [
_estack,
initialize_ram_jump_to_main,
unhandled_interrupt, CortexM7::HARD_FAULT_HANDLER, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt,
unhandled_interrupt,
unhandled_interrupt,
unhandled_interrupt,
CortexM7::SVC_HANDLER, unhandled_interrupt, unhandled_interrupt,
unhandled_interrupt, CortexM7::SYSTICK_HANDLER, ];
#[cfg_attr(all(target_arch = "arm", target_os = "none"), link_section = ".irqs")]
#[cfg_attr(all(target_arch = "arm", target_os = "none"), used)]
pub static IRQS: [unsafe extern "C" fn(); 160] = [
CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, CortexM7::GENERIC_ISR, ];
pub unsafe fn init() {
cortexm7::nvic::disable_all();
cortexm7::nvic::clear_all_pending();
cortexm7::scb::set_vector_table_offset(core::ptr::addr_of!(BASE_VECTORS) as *const ());
cortexm7::nvic::enable_all();
}