This commit is contained in:
刘可亮
2024-09-30 17:06:01 +08:00
parent 2ce4d6bb89
commit 0ef85b55da
9363 changed files with 843557 additions and 428518 deletions

View File

@@ -2290,7 +2290,7 @@ def build_pinmux_check(cfg, image_path):
# Get all configured pins and multiplexed functions in the pre-processed file pinmux.i
with open(preproc_path, 'r') as file:
pin_pattern = r'\{(\d+),\s*([^,]+),\s*(\d+),\s*("[^"]+"|[^,]+)\}'
pin_pattern = r'\{(\d+),\s*([^,]+),\s*(\d+),\s*("[^"]+"|[^,]+)(,\s*(\d+))?\}'
for f in file:
match = re.search(pin_pattern, f)
if match: