From 23a150789df1029def2a26cb757e7d6703520159 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 29 Nov 2021 13:35:43 +1100 Subject: [PATCH] stm32/boards/make-pins.py: Use cpu pins to define static alt-fun macros. Instead of board pins, so that pins which have only the CPU specified in pins.csv can still be used with mp_hal_pin_config_alt_static(). Signed-off-by: Damien George --- ports/stm32/boards/make-pins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/boards/make-pins.py b/ports/stm32/boards/make-pins.py index c7423cb966..b11f438aae 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]