Commit c0e39864 authored by Damien George's avatar Damien George

stmhal: Fix make-pins.py to allow Port K.

Thanks to Dave Hylands for the patch.
parent 6e552e15
...@@ -32,8 +32,8 @@ def parse_port_pin(name_str): ...@@ -32,8 +32,8 @@ def parse_port_pin(name_str):
raise ValueError("Expecting pin name to be at least 3 charcters.") raise ValueError("Expecting pin name to be at least 3 charcters.")
if name_str[0] != 'P': if name_str[0] != 'P':
raise ValueError("Expecting pin name to start with P") raise ValueError("Expecting pin name to start with P")
if name_str[1] < 'A' or name_str[1] > 'J': if name_str[1] < 'A' or name_str[1] > 'K':
raise ValueError("Expecting pin port to be between A and J") raise ValueError("Expecting pin port to be between A and K")
port = ord(name_str[1]) - ord('A') port = ord(name_str[1]) - ord('A')
pin_str = name_str[2:] pin_str = name_str[2:]
if not pin_str.isdigit(): if not pin_str.isdigit():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment