embassy
embassy copied to clipboard
kill #[interrupt] compat AND use VTOR
See:
- https://www.keil.com/pack/doc/CMSIS/Core/html/using_VTOR_pg.html
- https://github.com/rust-embedded/cortex-m-rt/issues/55
I imagine that this would need a new struct that provides interrupts with a pub fn register_interrupt_table().
alignment:
// C representation, alignment raised to 8
#[repr(C, align(8))]
struct AlignedStruct {
first: i16,
second: i8,
third: i32
}
// uint32_t vectorTable_RAM[VECTORTABLE_SIZE] __attribute__(( aligned (VECTORTABLE_ALIGNMENT) ));
#[repr(C, align(VECTORTABLE_ALIGNMENT))]
static mut vectorTable_RAM: [u8];