mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Modify extract_configs.py to deal with _u(X) macros (#222)
This commit is contained in:
parent
6770bd2a46
commit
f3ee2f311c
1 changed files with 5 additions and 0 deletions
|
|
@ -171,6 +171,11 @@ for dirpath, dirnames, filenames in os.walk(scandir):
|
|||
m = re.match(r'^((0x)?\d+)u$', value.lower())
|
||||
if m:
|
||||
value = m.group(1)
|
||||
else:
|
||||
# discard any '_u(X)' macro
|
||||
m = re.match(r'^_u\(((0x)?\d+)\)$', value.lower())
|
||||
if m:
|
||||
value = m.group(1)
|
||||
if name not in all_defines:
|
||||
all_defines[name] = dict()
|
||||
if value not in all_defines[name]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue