We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04dfd74 commit fcc4104Copy full SHA for fcc4104
core_generator/src/gen.rs
@@ -39,6 +39,8 @@ pub fn write_registers(mcu: &Mcu, w: &mut dyn Write) -> Result<(), io::Error> {
39
40
writeln!(w, "impl {} {{", register.name)?;
41
for bitfield in register.bitfields.iter() {
42
+ if !(bitfield.name.chars().all(|c| char::is_uppercase(c) || char::is_numeric(c))) { continue }
43
+
44
// Create a mask for the whole bitset.
45
writeln!(w, " pub const {}: RegisterBits<Self> = RegisterBits::new(0x{:x});", bitfield.name, bitfield.mask)?;
46
0 commit comments