stm32/mco: fix on h7ab
This commit is contained in:
parent
2a246be06e
commit
1ff80f8438
@ -49,7 +49,7 @@ fn main() {
|
|||||||
// We *shouldn't* have singletons for these, but the HAL currently requires
|
// We *shouldn't* have singletons for these, but the HAL currently requires
|
||||||
// singletons, for using with RccPeripheral to enable/disable clocks to them.
|
// singletons, for using with RccPeripheral to enable/disable clocks to them.
|
||||||
"rcc" => {
|
"rcc" => {
|
||||||
if r.version == "h7" {
|
if r.version.starts_with("h7") {
|
||||||
singletons.push("MCO1".to_string());
|
singletons.push("MCO1".to_string());
|
||||||
singletons.push("MCO2".to_string());
|
singletons.push("MCO2".to_string());
|
||||||
}
|
}
|
||||||
@ -436,7 +436,7 @@ fn main() {
|
|||||||
// MCO is special
|
// MCO is special
|
||||||
if pin.signal.starts_with("MCO_") {
|
if pin.signal.starts_with("MCO_") {
|
||||||
// Supported in H7 only for now
|
// Supported in H7 only for now
|
||||||
if regs.version == "h7" {
|
if regs.version.starts_with("h7") {
|
||||||
peri = format_ident!("{}", pin.signal.replace("_", ""));
|
peri = format_ident!("{}", pin.signal.replace("_", ""));
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user