Skip to content

Commit 24fd5f7

Browse files
committed
stm32/boards/make-pins.py: Support up to GPIO-O.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 228abf8 commit 24fd5f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ports/stm32/boards/make-pins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def print_source(self, out_source):
215215
def validate_cpu_pin_name(cpu_pin_name):
216216
boardgen.Pin.validate_cpu_pin_name(cpu_pin_name)
217217

218-
if not re.match("P[A-K][0-9]+(_C)?$", cpu_pin_name):
218+
if not re.match("P[A-O][0-9]+(_C)?$", cpu_pin_name):
219219
raise boardgen.PinGeneratorError("Invalid cpu pin name '{}'".format(cpu_pin_name))
220220

221221

ports/stm32/pin_defs_stm32.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ enum {
3939
PORT_I,
4040
PORT_J,
4141
PORT_K,
42+
PORT_L,
43+
PORT_M,
44+
PORT_N,
45+
PORT_O,
4246
};
4347

4448
// Must have matching entries in SUPPORTED_FN in boards/make-pins.py

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy