diff options
author | Damien George <damien@micropython.org> | 2021-11-29 13:35:43 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-11-30 10:25:41 +1100 |
commit | 23a150789df1029def2a26cb757e7d6703520159 (patch) | |
tree | 77e8801cc719fd41238a7574155e245bb79d6b31 /ports/stm32/boards/make-pins.py | |
parent | 0c9f5b388eae485625b15c8f6e15f2bed9446138 (diff) | |
download | micropython-23a150789df1029def2a26cb757e7d6703520159.tar.gz micropython-23a150789df1029def2a26cb757e7d6703520159.zip |
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 <damien@micropython.org>
Diffstat (limited to 'ports/stm32/boards/make-pins.py')
-rwxr-xr-x | ports/stm32/boards/make-pins.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |