summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/make-stmconst.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-01 12:32:44 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-01 12:32:44 +0000
commitb753009a380a103c024ffdd313f43d4fa44f0ef5 (patch)
treedf7985483a405d9b686b92995f859f0521986de3 /stmhal/make-stmconst.py
parent47538cc880e3699fcef3f8a9ff4c8c76fa455795 (diff)
downloadmicropython-b753009a380a103c024ffdd313f43d4fa44f0ef5.tar.gz
micropython-b753009a380a103c024ffdd313f43d4fa44f0ef5.zip
stmhal: Add I2S2EXT and I2S3EXT constants to stm module.
Diffstat (limited to 'stmhal/make-stmconst.py')
-rw-r--r--stmhal/make-stmconst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/make-stmconst.py b/stmhal/make-stmconst.py
index 03051c557e..38f7a05754 100644
--- a/stmhal/make-stmconst.py
+++ b/stmhal/make-stmconst.py
@@ -29,8 +29,8 @@ class Lexer:
regexs = (
('#define hex', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +\(\(uint32_t\)(?P<hex>0x[0-9A-F]+)\)($| +/\*)')),
('#define X', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +(?P<id2>[A-Z0-9_]+)($| +/\*)')),
- ('#define X+hex', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +\((?P<id2>[A-Z0-9_]+) \+ (?P<hex>0x[0-9A-F]+)\)($| +/\*)')),
- ('#define typedef', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +\(\([A-Za-z0-9_]+_TypeDef \*\) (?P<id2>[A-Z0-9_]+)\)($| +/\*)')),
+ ('#define X+hex', re.compile(r'#define +(?P<id>[A-Za-z0-9_]+) +\((?P<id2>[A-Z0-9_]+) \+ (?P<hex>0x[0-9A-F]+)\)($| +/\*)')),
+ ('#define typedef', re.compile(r'#define +(?P<id>[A-Z0-9_]+(ext)?) +\(\([A-Za-z0-9_]+_TypeDef \*\) (?P<id2>[A-Za-z0-9_]+)\)($| +/\*)')),
('typedef struct', re.compile(r'typedef struct$')),
('{', re.compile(r'{$')),
('}', re.compile(r'}$')),