Skip to content

Commit a567cba

Browse files
committed
[dfg] Do not generate duplicate remap GPIOs on STM32
1 parent 7e3d7fd commit a567cba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modm_devices/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
__all__ = ['exception', 'device_file', 'device_identifier', 'device', 'parser', 'pkg']
1818

19-
__version__ = "0.2.0"
19+
__version__ = "0.2.1"

tools/generator/dfg/stm32/stm_device_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ def raw_pin_sort(p):
181181
pin = pin[:3]
182182
return (port, int(pin[2:]))
183183
pins = sorted(pins, key=raw_pin_sort)
184-
# STM32G0 has pin remaps?!?
185-
# pins = filter(lambda p: "PINREMAP" not in p.get("Variant", ""), pins)
184+
# Remove package remaps from GPIO data (but not from package)
185+
pins = filter(lambda p: "PINREMAP" not in p.get("Variant", ""), pins)
186186

187187
gpios = []
188188

0 commit comments

Comments
 (0)