diff options
author | Damien George <damien.p.george@gmail.com> | 2016-11-28 15:02:42 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-11-28 15:02:42 +1100 |
commit | 139b891d6dab08b2e3ca22b3c52cd37eccc49326 (patch) | |
tree | 0172690ce99f0df7c57f8cb72657bed881591f24 | |
parent | 612599587bef71e1deca9a77a8e2e16e69b045de (diff) | |
download | micropython-139b891d6dab08b2e3ca22b3c52cd37eccc49326.tar.gz micropython-139b891d6dab08b2e3ca22b3c52cd37eccc49326.zip |
stmhal: Add back GPIO_BSRRL and GPIO_BSRRH constants to stm module.
These were inadvertently removed with a recent upgrade to CMSIS, where
those registers were no longer defined in the CMSIS headers, and hence
no longer extracted.
-rw-r--r-- | stmhal/make-stmconst.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/make-stmconst.py b/stmhal/make-stmconst.py index 9aecbb97cf..c9eb42a403 100644 --- a/stmhal/make-stmconst.py +++ b/stmhal/make-stmconst.py @@ -193,6 +193,11 @@ def main(): periphs, reg_defs = parse_file(args.file[0]) + # add legacy GPIO constants that were removed when upgrading CMSIS + if 'GPIO' in reg_defs and 'stm32f4' in args.file[0]: + reg_defs['GPIO'].append(['BSRRL', 0x18, 16, 'legacy register']) + reg_defs['GPIO'].append(['BSRRH', 0x1a, 16, 'legacy register']) + modules = [] needed_qstrs = set() needed_mpzs = set() |