We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd967f commit 979075aCopy full SHA for 979075a
stm32-data-gen/src/interrupts.rs
@@ -275,6 +275,15 @@ impl ChipInterrupts {
275
.map(ToString::to_string)
276
.collect();
277
278
+ // If this is a USB_OTG_HS interrupt with no further signal details, map to GLOBAL
279
+ if peri_names.len() == 1
280
+ && (peri_names[0] == "USB" || peri_names[0] == "USB_OTG_HS" || peri_names[0] == "USB_OTG_FS")
281
+ && name == "USB_OTG_HS"
282
+ {
283
+ interrupt_signals.insert((peri_names[0].clone(), "GLOBAL".to_string()));
284
+ continue;
285
+ }
286
+
287
trace!(" peri_names: {peri_names:?}");
288
289
let name2 = {
@@ -502,7 +511,7 @@ fn valid_signals(peri: &str) -> Vec<String> {
502
511
("GTZC", &["GLOBAL", "ILA"]),
503
512
("WWDG", &["GLOBAL", "RST"]),
504
513
("USB_OTG_FS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP"]),
505
- ("USB_OTG_HS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP", "USB"]),
514
+ ("USB_OTG_HS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP"]),
506
515
("USB", &["LP", "HP", "WKUP"]),
507
516
("GPU2D", &["ER"]),
508
517
("SAI", &["A", "B"]),
0 commit comments