Releases: rust-embedded/svd2rust
Releases · rust-embedded/svd2rust
v0.27.0
- Manually inline set/clear_bit
- Don't cast fields with width 17-31
- Make
generic.rs
generic - [breaking-change] Change initial write value for registers with modifiedWriteValues
- Update
clap
to 4.0, useirx-config
instead ofclap_conf
- Add #[must_use] to prevent hanging field writers
- Remove explicit deref in
generic.rs
since it's done by auto-deref - [breaking-change] Make writing raw bits to a whole register safe if the SVD indicates
so through the element (see [v0.7.1] too). - Remove lint #![deny(const_err)] as it is a hard error in Rust now
- Add doc of using
critical-section
v0.26.0
- Use edition 2021
- Fix adding ending reserved field when
max_cluster_size
option enabled - Add
Eq
autoimplementation for enums - Use
critical_section::with
instead ofinterrupt::free
forPeripherals::take
. - Bring documentation on how to generate MSP430 PACs up to date (in line with
msp430_svd). - Prefix submodule path with self:: when reexporting submodules to avoid ambiguity in crate path.
v0.25.1
- Fixed parentheses in RegisterBlock field accessors
- Check cluster size, add
max_cluster_size
option
v0.25.0
- Add
feature_peripheral
option which generates cfg features for each peripheral - Use register aliases in
RegisterBlock
(both structure and mod) - Create aliases for derived registers & clusters
- Move cluster struct inside mod
- Support non-sequential field arrays
- Use inlined variables in
format!
(Rust 1.58) - Refactor, clean
periperal.rs
&util.rs
- use
svd_parser::expand::Index
for derive - Generated enum names now consider
name
field inenumeratedValues
- Use constant case for structure names; internal rearrangements for
case conversation traits - Add new feature
feature_group
which will generate cfg attribute for
every group name when it is on - Sort fields by offset before process
- Updated docs for
write
/modify
v0.24.1
Prereleased 2024-10-11
- Fix STM32-patched CI
- Fix
enumeratedValues
withisDefault
only - Fix invalid
Punct
error fromproc_macro2
- Run espressif tests on nightly-2024-09-25 to workaround CI failures
v0.23.1
v0.23.0
What's Changed
- 1-element array by @burrbull in #590
- optional PascalCase for Enum values by @burrbull in #591
- clean FieldReader by @burrbull in #594
- const generic field array by @burrbull in #595
- add code generation support of peripheral arrays by @duskmoon314 in #592
Full Changelog: v0.22.1...v0.23.0
v0.22.1
v0.22.0
What's Changed
- v0.21 by @burrbull in #575
- Bring documentation on MSP430 up to date. by @cr1901 in #577
- array accessors by @burrbull in #579
- added dyn keyword to KEYWORDS in sanitize_keyword by @tiagomanczak in #586
- Use the official Espressif SVDs for testing, check additional chips by @jessebraham in #587
- v0.22 by @burrbull in #588
New Contributors
- @tiagomanczak made their first contribution in #586
- @jessebraham made their first contribution in #587
Full Changelog: v0.21.0...v0.22.0