f3 0.2.0

A crate to play with the STM32F3DISCOVERY
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;
use std::fs;
use std::path::PathBuf;

fn main() {
    // Pass our linker script to the top crate
    let script = "stm32f3discovery.ld";
    let src = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
    let out = PathBuf::from(env::var_os("OUT_DIR").unwrap());

    fs::copy(src.join(script), out.join(script)).unwrap();
    println!("cargo:rustc-link-search={}", out.display());
}