px4flow_bsp 0.1.0

A board support package for the PX4FLOW optical flow sensor board
Documentation
fn main() {
    use std::env;
    use std::fs::File;
    use std::io::Write;
    use std::path::PathBuf;
    let memfile_bytes = include_bytes!("stm32f407_memory.x");

    //stm32f427
    // Put the linker script somewhere the linker can find it
    let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());

    File::create(out.join("memory.x"))
        .unwrap()
        .write_all(memfile_bytes)
        .unwrap();
    println!("cargo:rustc-link-search={}", out.display());
}