Skip to content

support <access>read-writeOnce</access> #91

Closed
@japaric

Description

@japaric

The code generated from the file STM32L063x.svd doesn't compile. Because the read-writeOnce access mode is not supported by svd2rust the DAC_SR register has no access methods:

# [ doc = "Digital-to-analog converter" ]
pub mod dac {
    // ..
    # [ doc = "status register" ]
    pub struct Sr {
        register: VolatileCell<u32>,
    }
    # [ doc = "status register" ]
    pub mod sr {
        impl super::Sr {}
    }
}

And you run into an unused field warning which becomes an error because of #![deny(warnings)].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions