Releases: rust-embedded/svd2rust
Releases · rust-embedded/svd2rust
v0.28.0
- Generate atomic register code for non-MSP430 targets
- Change --nightly flag to --atomics
- Add handling for disjoint register arrays and validation of derives
v0.27.2
- mark alternate register accessors with
const
, bumppac
MSRV to 1.61 fields
fn refactoring- Test patched STM32
- simplify ci strategy
- Fix generated code for MSP430 atomics
v0.27.1
- fix cli error with --help/version
- Don't cast fields with width 17-31 and non-zero offset.
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-11-13
- Add
crate_path
setting - Inline
Settings
intoConfig
, addsettings_file
- Fix MSP430 PAC inner attribute generation when used with the
-m
switch.