remove disable variant

This commit is contained in:
xoviat 2023-10-11 19:35:45 -05:00
parent e25c7c23d0
commit e1a1c51d00
3 changed files with 2 additions and 5 deletions

View File

@ -496,6 +496,7 @@ fn main() {
let match_arms: TokenStream = rcc_enumm
.variants
.iter()
.filter(|v| v.name != "DISABLE")
.map(|v| {
let variant_name = format_ident!("{}", v.name);

View File

@ -618,10 +618,8 @@ pub(crate) unsafe fn init(config: Config) {
#[cfg(stm32h5)]
mux_rcc_pclk4: None,
#[cfg(stm32h5)]
mux_hse: None,
mux_hse: hse,
#[cfg(stm32h5)]
mux_disable: None,
#[cfg(stm32h5)]
mux_hsi48: None,
});

View File

@ -184,8 +184,6 @@ pub struct Clocks {
#[cfg(stm32h5)]
pub mux_hse: Option<Hertz>,
#[cfg(stm32h5)]
pub mux_disable: Option<Hertz>,
#[cfg(stm32h5)]
pub mux_hsi48: Option<Hertz>,
}