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.
pull/1/head
Damien George 2016-11-28 15:02:42 +11:00
parent 612599587b
commit 139b891d6d
1 changed files with 5 additions and 0 deletions

View File

@ -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()