aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-02-24 05:58:21 +0100
committerDario Nieuwenhuis <[email protected]>2022-02-24 06:28:29 +0100
commit1ff80f8438d4c8223050d5bd8c435ffc0ab0f9c6 (patch)
tree2d3334ed03eb6f291d8d00eb8139caa2115ce7f7
parent2a246be06e1131f5bc97cd312198e24a5428645d (diff)
stm32/mco: fix on h7ab
-rw-r--r--embassy-stm32/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs
index 2b642db84..1257e0152 100644
--- a/embassy-stm32/build.rs
+++ b/embassy-stm32/build.rs
@@ -49,7 +49,7 @@ fn main() {
49 // We *shouldn't* have singletons for these, but the HAL currently requires 49 // We *shouldn't* have singletons for these, but the HAL currently requires
50 // singletons, for using with RccPeripheral to enable/disable clocks to them. 50 // singletons, for using with RccPeripheral to enable/disable clocks to them.
51 "rcc" => { 51 "rcc" => {
52 if r.version == "h7" { 52 if r.version.starts_with("h7") {
53 singletons.push("MCO1".to_string()); 53 singletons.push("MCO1".to_string());
54 singletons.push("MCO2".to_string()); 54 singletons.push("MCO2".to_string());
55 } 55 }
@@ -436,7 +436,7 @@ fn main() {
436 // MCO is special 436 // MCO is special
437 if pin.signal.starts_with("MCO_") { 437 if pin.signal.starts_with("MCO_") {
438 // Supported in H7 only for now 438 // Supported in H7 only for now
439 if regs.version == "h7" { 439 if regs.version.starts_with("h7") {
440 peri = format_ident!("{}", pin.signal.replace("_", "")); 440 peri = format_ident!("{}", pin.signal.replace("_", ""));
441 } else { 441 } else {
442 continue; 442 continue;