dps422 0.1.1

A platform agnostic driver to interface with the DPS422 barometric pressure & temp sensor through I2C
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;
use std::fs;
use std::path::PathBuf;
fn main() {

    let memory_layout = "stm32g070.x";

    if memory_layout.len() > 0 {
        let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
        println!("cargo:rustc-link-search={}", out.display());
        println!("selected file: {}", memory_layout);
        fs::copy(memory_layout, out.join("memory.x")).unwrap();
        println!("cargo:rerun-if-changed={}", memory_layout);
    }
    println!("cargo:rerun-if-changed=build.rs");
}