diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2019-03-06 21:35:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 21:35:19 +0100 |
commit | 61e54f53e772b9d14f25d5498d9f00b136595bef (patch) | |
tree | fe5afbb9f6e728ac62ca6afe3df1d1c1c2df4061 /tools/mx2board.py | |
parent | b82dd2d0266dfdb91e8563536af74cf3727b91c2 (diff) | |
parent | 1698a158b3ba91bccc1887733e31b19703caf61b (diff) | |
download | ChibiOS-Contrib-61e54f53e772b9d14f25d5498d9f00b136595bef.tar.gz ChibiOS-Contrib-61e54f53e772b9d14f25d5498d9f00b136595bef.tar.bz2 ChibiOS-Contrib-61e54f53e772b9d14f25d5498d9f00b136595bef.zip |
Merge pull request #185 from kajusK/pin_reset
Fixed GPIO_PIN_RESET instead of GPIO_PIN_CLEAR
Diffstat (limited to 'tools/mx2board.py')
-rwxr-xr-x | tools/mx2board.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 6e09d39..4ad3e97 100755 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -71,7 +71,8 @@ PIN_PUPDR_TRANSLATE = {"GPIO_NOPULL": PIN_PUPDR_FLOATING, "GPIO_PULLDOWN": PIN_PUPDR_PULLDOWN} PIN_ODR_TRANSLATE = {"GPIO_PIN_SET": PIN_ODR_HIGH, - "GPIO_PIN_CLEAR": PIN_ODR_LOW} + "GPIO_PIN_CLEAR": PIN_ODR_LOW, + "GPIO_PIN_RESET": PIN_ODR_LOW } parser = ArgumentParser(description='Generate ChibiOS GPIO header file from STM32CubeMX project files.') group = parser.add_mutually_exclusive_group(required=False) |