scrapyard-core 0.1.0

Core crate for scrapyard containing MCU, Peripherals, ...
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate mcu;

use mcu::MCU;
use std::path::Path;

#[test]
fn load_mcu() {
    let mcu = MCU::new(Path::new("samples/STM32F030C6Tx.json")).unwrap();
    let mcu_conf = mcu.finish();

    mcu_conf.get_pins().pins().len();
    mcu_conf.get_peripherals().len();
    assert!(true);
}