diff options
author | Jakub Kaderka <jakub.kaderka@gmail.com> | 2019-03-13 21:09:24 +0100 |
---|---|---|
committer | Jakub Kaderka <jakub.kaderka@gmail.com> | 2019-03-13 21:09:24 +0100 |
commit | 814a79bfaf907508578320c1e9e55fa7c77cd773 (patch) | |
tree | db6dac2f3b2ff96938e5086a4c3a1d9fd47dae3b | |
parent | bfa9d76d373e418255f074037c114a4bb97aebf9 (diff) | |
download | ChibiOS-Contrib-814a79bfaf907508578320c1e9e55fa7c77cd773.tar.gz ChibiOS-Contrib-814a79bfaf907508578320c1e9e55fa7c77cd773.tar.bz2 ChibiOS-Contrib-814a79bfaf907508578320c1e9e55fa7c77cd773.zip |
I2C not set as opendrain, fixed
-rwxr-xr-x | tools/mx2board.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 4ad3e97..8ab155d 100755 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -262,6 +262,10 @@ def read_project(gpio, filename): pads[pad_port][pad_num]["OSPEEDR"] = PIN_OSPEED_TRANSLATE[prop_value] elif pad_prop == "PinState": pads[pad_port][pad_num]["ODR"] = PIN_ODR_TRANSLATE[prop_value] + elif pad_prop == "Mode": + if "I2C" in prop_value: + pads[pad_port][pad_num]["OTYPER"] = PIN_OTYPE_OPENDRAIN + return pads |