File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -359,14 +359,18 @@ impl ParsedRccs {
359359 ( "n6" , "SDMMC1" ) , // HCLK2 is corrext per Cube and Docs so no mux check
360360 ( "n6" , "SDMMC2" ) , // HCLKU is corrext per Cube and Docs so no mux check
361361 ] ;
362-
362+
363363 let kernel_clock = match mux {
364364 Some ( mux) => {
365365 // check for mismatch between mux and bus clock.
366366 //
367367 // U5 has one ADCDACSEL for multiple ADCs which may be on
368368 // different HCLKs, so we skip the check in that case
369- if !( RCC_PERI_MUX_EXCEPTIONS . iter ( ) . any ( |x| { rcc_version == x. 0 && peri_name. starts_with ( x. 1 ) } ) ) && phclk. is_match ( & en_rst. bus_clock ) {
369+ if !( RCC_PERI_MUX_EXCEPTIONS
370+ . iter ( )
371+ . any ( |x| rcc_version == x. 0 && peri_name. starts_with ( x. 1 ) ) )
372+ && phclk. is_match ( & en_rst. bus_clock )
373+ {
370374 for v in & mux. variants {
371375 if phclk. is_match ( v) && v != & maybe_kernel_clock {
372376 panic ! (
You can’t perform that action at this time.
0 commit comments