fusible 0.12.0

Electronic linter: a fuse that blows to block firmware code generation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! STM32G431 48-pin package variants against DS12589 Rev 6, Table 12.

use crate::silicon::*;

#[test]
fn c_package_variants_add_their_extra_gpios() {
    let bonded = |chip: &str, pin: &str| find_target(chip).unwrap().find_pin(pin).is_some();
    assert!(bonded("stm32g431cbu", "PC10"));
    assert!(bonded("stm32g431cbu", "PC4"));
    assert!(!bonded("stm32g431cby", "PC10"));
    assert!(bonded("stm32g431cby", "PC11"));
    assert!(!bonded("stm32g431cbt", "PC11"));
    assert!(find_target("stm32g431cbx").is_none());
}