Skip to main content

Crate nucleus_db

Crate nucleus_db 

Source
Expand description

STM32 constraint database for the Nucleus toolchain.

Exposes a normalized pin ↔ alternate-function ↔ peripheral model and the lookup APIs the compiler and LSP build on. The data is currently a hand-verified seed for the STM32F446RE; the full CMSIS Device Family Pack parser that will populate it lives in pack and is not yet wired up.

See the Phase 1 exit criteria in the project README.

Modules§

pack
Parser for ST’s open pin data (CubeMX XML) into the normalized pin ↔ AF ↔ peripheral model, plus the patch table for known anomalies.

Structs§

AfMapping
One alternate-function mapping: a Pin driving a peripheral signal at a given AF number (AF0–AF15).
Database
A queryable constraint database for a single device.
ParsePinError
Error returned when a string cannot be parsed as a Pin.
Pin
A physical pin, e.g. PA7 is Port::A pin 7.

Enums§

Port
A GPIO port on the device.