#![crate_name = "stm32f303xc"]
#![crate_type = "rlib"]
#![no_std]
pub mod chip;
pub mod nvic;
pub mod adc;
pub mod dma;
pub mod exti;
pub mod flash;
pub mod gpio;
pub mod i2c;
pub mod rcc;
pub mod spi;
pub mod syscfg;
pub mod tim2;
pub mod usart;
pub mod wdt;
use cortexm4f::{initialize_ram_jump_to_main, unhandled_interrupt, CortexM4F, 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, CortexM4F::HARD_FAULT_HANDLER, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt,
unhandled_interrupt,
unhandled_interrupt,
unhandled_interrupt,
CortexM4F::SVC_HANDLER, unhandled_interrupt, unhandled_interrupt,
unhandled_interrupt, CortexM4F::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(); 82] = [
CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, unhandled_interrupt, unhandled_interrupt, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, CortexM4F::GENERIC_ISR, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, unhandled_interrupt, CortexM4F::GENERIC_ISR, ];
pub unsafe fn init() {
cortexm4f::nvic::disable_all();
cortexm4f::nvic::clear_all_pending();
cortexm4f::nvic::enable_all();
}