We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isDefault
In the Renesas RA SVDs, there are some enums like the below, with isDefault and no value.
value
<field> <name>MOSEL</name> <description>Main Clock Oscillator Switching</description> <lsb>6</lsb> <msb>7</msb> <access>read-write</access> <enumeratedValues> <enumeratedValue> <name>01</name> <description>Resonator</description> <value>#01</value> </enumeratedValue> <enumeratedValue> <name>11</name> <description>External clock input mode</description> <value>#11</value> </enumeratedValue> <enumeratedValue> <name>Others</name> <description>Port mode</description> <isDefault>true</isDefault> </enumeratedValue> </enumeratedValues> </field>
This causes chiptool to crash at
chiptool
chiptool/src/svd2ir.rs
Line 308 in 26983da
while svd2rust generates the following enum:
svd2rust
#[doc = "Main Clock Oscillator Switching\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[repr(u8)] pub enum Mosel { #[doc = "1: Resonator"] _01 = 1, #[doc = "3: External clock input mode"] _11 = 3, #[doc = "0: Port mode"] Others = 0, }
Related issues in svd2rust:
enumeratedValue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the Renesas RA SVDs, there are some enums like the below, with
isDefault
and novalue
.This causes
chiptool
to crash atchiptool/src/svd2ir.rs
Line 308 in 26983da
while
svd2rust
generates the following enum:Related issues in
svd2rust
:isDefault
is present in anenumeratedValue
, map all non-specified reads to that variant rust-embedded/svd2rust#172The text was updated successfully, but these errors were encountered: