We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2d0008 commit 4869a3fCopy full SHA for 4869a3f
buildroot/share/scripts/pinsformat.py
@@ -43,7 +43,7 @@ def concat_with_space(s1, s2):
43
ppad = [ 3, 4, 5, 5 ]
44
45
# Match a define line
46
-definePatt = re.compile(rf'^\s*(//)?#define\s+[A-Z_][A-Z0-9_]+\s+({mstr})\s*(//.*)?$')
+definePinPatt = re.compile(rf'^\s*(//)?#define\s+[A-Z_][A-Z0-9_]+?_PIN\s+({mstr})\s*(//.*)?$')
47
48
def format_pins(argv):
49
src_file = 'stdin'
@@ -93,7 +93,7 @@ def get_pin_pattern(txt):
93
# Find the most common matching pattern
94
match_threshold = 5
95
for line in txt.split('\n'):
96
- r = definePatt.match(line)
+ r = definePinPatt.match(line)
97
if r == None: continue
98
ind = -1
99
for p in mexpr:
0 commit comments