lpc176x5x-pac

Crates.iolpc176x5x-pac
lib.rslpc176x5x-pac
version0.1.1
created_at2026-01-20 21:58:50.385033+00
updated_at2026-01-20 22:20:04.691471+00
descriptionA Peripheral Access Crate for the NXP LPC176x5x series microcontrollers.
homepage
repositoryhttps://github.com/MarshTheBacca/lpc176x5x-pac
max_upload_size
id2057659
size3,880,541
Marshall Hunt (MarshTheBacca)

documentation

README

LPC176x5x PAC

Peripheral Access Crate for LPC176x5x MCUs.

Generation

This codebase was produced by patching the LPC176x5x_v0.2.svd file (source) and using svd2rust.

The python script modifies hundreds of enums with the same name, ENUM. Unfortunately, this was not possible with svdtools, and an issue has been opened.

The patch.yaml provides a few fixes for duplicate enum variants and other miscellaneous fixes.

uv run patch.py
svdtools patch patch.yaml
svd2rust --edition 2024 -i LPC176x5x_v0.2-python.svd.patched
form -i lib.rs -o src
rm lib.rs
cargo fmt
Commit count: 7

cargo fmt