rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
707 stars 151 forks source link

EnumeratedValue RESERVED has no <value> field #88

Closed simonvandel closed 7 years ago

simonvandel commented 7 years ago
$ curl -LO https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/NXP/LPC176x5x_v0.2.svd
$ svd2rust --version
svd2rust 0.7.2 ( )
$ svd2rust -i LPC176x5x_v0.2.svd
error: EnumeratedValue RESERVED has no <value> field
note: run with `RUST_BACKTRACE=1` for a backtrace

I don't believe a value is needed, as a RESERVED EnumeratedValue can be ignored safely when generating the public API.

simonvandel commented 7 years ago

Well, i guess this will get fixed in #87 when reserved fields are ignored.