summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xports/stm32/boards/make-pins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/boards/make-pins.py b/ports/stm32/boards/make-pins.py
index c7423cb96..b11f438aa 100755
--- a/ports/stm32/boards/make-pins.py
+++ b/ports/stm32/boards/make-pins.py
@@ -504,7 +504,7 @@ class Pins(object):
with open(af_defs_filename, "wt") as af_defs_file:
STATIC_AF_TOKENS = {}
- for named_pin in self.board_pins:
+ for named_pin in self.cpu_pins:
for af in named_pin.pin().alt_fn:
func = "%s%d" % (af.func, af.fn_num) if af.fn_num else af.func
pin_type = (af.pin_type or "NULL").split("(")[0]