mirror of
https://github.com/micropython/micropython.git
synced 2025-07-20 20:41:10 +02:00
stm32/boards/make-pins.py: Support up to GPIO-O.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -215,7 +215,7 @@ class Stm32Pin(boardgen.Pin):
|
||||
def validate_cpu_pin_name(cpu_pin_name):
|
||||
boardgen.Pin.validate_cpu_pin_name(cpu_pin_name)
|
||||
|
||||
if not re.match("P[A-K][0-9]+(_C)?$", cpu_pin_name):
|
||||
if not re.match("P[A-O][0-9]+(_C)?$", cpu_pin_name):
|
||||
raise boardgen.PinGeneratorError("Invalid cpu pin name '{}'".format(cpu_pin_name))
|
||||
|
||||
|
||||
|
@@ -39,6 +39,10 @@ enum {
|
||||
PORT_I,
|
||||
PORT_J,
|
||||
PORT_K,
|
||||
PORT_L,
|
||||
PORT_M,
|
||||
PORT_N,
|
||||
PORT_O,
|
||||
};
|
||||
|
||||
// Must have matching entries in SUPPORTED_FN in boards/make-pins.py
|
||||
|
Reference in New Issue
Block a user