remove disable variant
This commit is contained in:
parent
e25c7c23d0
commit
e1a1c51d00
@ -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);
|
||||
|
||||
|
@ -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,
|
||||
});
|
||||
|
@ -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>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user