Skip to content

Commit 979075a

Browse files
author
Gerzain Mata
committed
Removed USB as a valid signal for USB_OTG_HS
1 parent 8fd967f commit 979075a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

stm32-data-gen/src/interrupts.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,15 @@ impl ChipInterrupts {
275275
.map(ToString::to_string)
276276
.collect();
277277

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+
278287
trace!(" peri_names: {peri_names:?}");
279288

280289
let name2 = {
@@ -502,7 +511,7 @@ fn valid_signals(peri: &str) -> Vec<String> {
502511
("GTZC", &["GLOBAL", "ILA"]),
503512
("WWDG", &["GLOBAL", "RST"]),
504513
("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"]),
506515
("USB", &["LP", "HP", "WKUP"]),
507516
("GPU2D", &["ER"]),
508517
("SAI", &["A", "B"]),

0 commit comments

Comments
 (0)