msp430
msp430 copied to clipboard
Low level access to MSP430 microcontrollers
The next version of `svd2rust` will depend on `critical_section` for `Peripherals::take` (see https://github.com/rust-embedded/svd2rust/pull/651), so this crate should provide an implementation (see https://docs.rs/critical-section/latest/critical_section/#providing-an-implementation).
For example, in [`cortex_m`](https://github.com/rust-embedded/cortex-m/blob/master/src/interrupt.rs#L39): ``` pub fn disable() { unsafe { asm!("cpsid i", options(nomem, nostack, preserves_flags)); } // Ensure no subsequent memory accesses are reordered to before interrupts are disabled....