Releases: rust-embedded/svd2rust
Releases · rust-embedded/svd2rust
v0.36.1
v0.36.0
- Generic
Periph<RB, A>
- use
ConstZero::ZERO
instead ofDefault::default()
to force const - Add
mtvec_align
field toriscv_config
to configure the byte alignment of interrupt vector table. - Fix reexport path when "%s" inside "derivedFrom"
- Force using rust edition 2021 in CI
- Added lifetime ellision for
FieldWriter
where the explicit lifetimes are not necessary, which
fixes theclippy::needless_lifetimes
warning on rustc 1.84 - Some fixes for the
svd2rust-regress
tool and update of its documentation - Other internal clippy fixes for
clippy::manual_div_ceil
,clippy::nonminimal_bool
and
clippy::needless_lifetimes
- Add missing
escape_special_chars
for peripheral description - Update
svd-rs
to 0.14.11 - Added
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
to the generated library code. This
adds a display of the feature gates in the documentation of the generated library - Split on the start of attribute instead of the end
v0.35.0
- Add
crate_path
setting - Inline
Settings
intoConfig
, addsettings_file
- Fix MSP430 PAC inner attribute generation when used with the
-m
switch.
v0.34.0
- Revert #711
- Add
defmt
impls forTryFromInterruptError
, riscv interrupt enums - Fix calculating
modifiedWriteValues
bitmasks with field arrays - Fix building without
yaml
feature - Compatibility with
riscv
0.12 andriscv-rt
0.13 - Add
riscv_config
section insettings.yaml
It usesriscv-pac
traits and standardriscv-peripheral
peripherals. - Add
settings.yaml
file for target-specific settings. - Add warning about indexing register arrays
- Skip generating
.add(0)
and1 *
in accessors - Bump MSRV of generated code to 1.76
- move
must_use
from methods to generic type - breaking change Return raw writtened value
- Add
from_write
,from_write_with_zero
, andfrom_modify
register modifiers
with generic return value InterruptNumber
is no longer implemented for Xtensa peripheral interrupts
v0.33.5
- 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.33.4
- Add
html-url
option to accesssvdtools html
files from docs - Move
Reg
in separate file - Use
warning
class in docs - Refactor
Accessor
v0.33.3
- Yet more clean field & register
Debug
v0.33.2
- Remove unneeded
format_args
in registerDebug
impl
v0.33.1
- Add checked
set
for not full safe fields
v0.33.0
- Add
IsEnum
constraint forFieldWriter
s (fixvariant
safety) - Make field writer
bits
alwaysunsafe
, addset
for safe writing - Fix bit writer type for
ModifiedWriteValues::ZeroToSet