Closed trembel closed 3 years ago
Try using a version of svd2rust
built from git, I believe this is fixed over there.
Yes, this is fixed - but introduces a new error (for ALL avr devices):
error[E0433]: failed to resolve: use of undeclared crate or module `cortex_m`
--> src/devices/attiny412/interrupt.rs:52:13
|
52 | unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
| ^^^^^^^^ use of undeclared crate or module `cortex_m`
error: Compilation failed, aborting rustdoc
Hmm, that's new ... Can you try d6c668dedfea
for now? I guess this is an upstream regression we need to report. I'll take a look ...
Its because of this breaking change: https://github.com/rust-embedded/svd2rust/blob/c68b71c09c87ff17270e9e8e6cb63f45276b5068/CHANGELOG.md#changed
Yeah, apparently https://github.com/rust-embedded/svd2rust/pull/473 was not well tested for other platforms :D
Makes sense, the code they modified is in the else branch of the architecture selection if
which is also used for AVR
...
Made a report. For the time being, using the older git hash I linked above should work for you.
Worked, thanks. I think we should left this open, until svd2rust
publishes a new version.
The fix appears to have been made upstream in https://github.com/rust-embedded/svd2rust/pull/483/files. Since the broken change was never released, should this issue be closed?
Agreed.
Trying to compile for
attiny412
following error occurs, due to the naming of theASYNC
register in theTCB0
andTCD0
peripheral:Not sure if this should be fixed in
atdf2svd
by renamingASYNC
registers, or here.