cortex-m 0.2.6

Low level access to Cortex-M processors
Documentation
1
2
3
4
5
6
7
8
9
use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();

    if target.starts_with("thumbv6m-") {
        println!("cargo:rustc-cfg=armv6m")
    }
}