sf32lb52-pac

Crates.iosf32lb52-pac
lib.rssf32lb52-pac
version0.1.2
created_at2025-06-07 18:05:54.021832+00
updated_at2025-06-07 18:27:31.978095+00
descriptionPeripheral Access Crate for SF32LB52 microcontrollers
homepage
repositoryhttps://github.com/BogdanOlar/sf32lb52-pac
max_upload_size
id1704269
size6,226,747
Bogdan Olar (BogdanOlar)

documentation

README

sf32lb52-pac

SF32LB52 Peripheral Access Crate

The code is generated automatically from a (modified) vendor-supplied SVD file, using svd2rust v0.35.0.

The .svd file has been modified to:

  • derive peripherals (or register fields) from each other (e.g. derive I2C2 and I2C3 from I2C1, etc)
  • remove all kinds of "reserved" registers and fields

in order to minimize the amount of generated code.

Generate the PAC:

svd2rust -i SF32LB52x.svd -c svd2rust.toml
rm -rf src
form -i lib.rs -o src/ && rm lib.rs
cargo +nightly fmt

OR just run

./regenerate.sh
Commit count: 31

cargo fmt