svd2rust
svd2rust copied to clipboard
Generate Rust register maps (`struct`s) from SVD files
The way W1C (write-1-to-clear) fields are handled is counterintuitive. Basically, they're not handled differently from normal fields, which makes them counterintuitive from a programmer's perspective. Suppose you have a register...
With the stabilization of Cargo.lock file publishing in rust-lang/cargo#7026, lets restart the discussion from #148 about adding `Cargo.lock` to the repo. My two cents: not having `Cargo.lock` checked in is...
svd2rust accounts for alignment padding incorrectly. E.g., in the attached example, `struct ALIGNME` has 6 bytes of data and 2 bytes of alignment padding, a total of 8 bytes. The...
The methods `Reg::write`, `Reg::write_with_zero`, and `Reg::modify` all expect a closure that accepts a mutable reference and then must return ***the same*** mutable reference. This would seem to violate the usual...
[RA6M2.zip](https://github.com/rust-embedded/svd2rust/files/5033887/RA6M2.zip) I am trying to process the RA6M2.svd file. This requires changes to the svd-parser that I have already reported and to register.rs file, which I have attached, to filter...
Hi, I recently found out that the code generated by `svd2rust` (the one of `stm32f1` crate) is very slow if compiled for STM32F103 as --release (about five times slower than...
Here is a proposal to solve one more issue I found in the [LPC13xx .svd file](https://github.com/posborne/cmsis-svd/blob/master/data/NXP/LPC13xx_svd_v1.svd): registers with duplicate names. This PR does not simply drop the duplicate identifiers but...
It would be nice to be able to use svd2rust for SVDs that describe indirect accesses via a data port register (for example the infamous pci index and pci data...