lpc11xx

Crates.iolpc11xx
lib.rslpc11xx
version0.2.0
sourcesrc
created_at2019-07-24 02:44:50.577174
updated_at2019-09-03 10:41:33.76166
descriptionRegister mappings for the NXP LPC111x/LPC11Cxx/LPC11xxL/LPC11xxXL family of Cortex-M0 microcontrollers
homepage
repositoryhttps://github.com/TomCrypto/lpc11xx
max_upload_size
id151206
size1,885,310
Thomas Bénéteau (TomCrypto)

documentation

https://docs.rs/lpc11xx

README

LPC11xx

Documentation Crates.io

Register mappings for the NXP LPC111x/LPC11Cxx/LPC11xxL/LPC11xxXL family of Cortex-M0 microcontrollers generated with the svd2rust tool.

User Manual

The complete user manual for this family of microcontrollers may be found at UM10398 and is a useful supplement to this crate.

SVD Changes

The SVD file appears to have been generated from the user manual in an imperfect way and most of the enumerated values came out wrong e.g.:

<name>ENABLE_THE_THRE_INTE</name>

I've fixed up a significant number of these but only for the peripherals I have integrated into my projects; more fixes may be pushed over time. As far as I can tell the SVD file appears correct but as mentioned it is pretty gnarly to use in places. I would greatly appreciate pull requests with SVD fixes, ergonomic or otherwise, no matter how small.

Contribute

Install the svd2rust and form tools and run the generate.sh script to generate the crate from the SVD file. A line is also prepended to the lib.rs to prevent Clippy from checking the crate because the generated code does not lint well. Do not make manual edits to the src folder or the build.rs and device.x files which are all auto-generated.

Commit count: 6

cargo fmt