diff --git a/hpm-data-gen/src/pins.rs b/hpm-data-gen/src/pins.rs index 0727f85..e8b504c 100644 --- a/hpm-data-gen/src/pins.rs +++ b/hpm-data-gen/src/pins.rs @@ -56,6 +56,14 @@ pub fn add_ioc_pins_from_sdk>( }) .collect(); + // fix wrong pins + if chip_name.starts_with("HPM53") { + pins = pins + .into_iter() + .filter(|p| !p.name.starts_with("PX")) + .collect(); + } + pins.sort_by_key(|p| p.index); for core in &mut chip.cores {