From 814a79bfaf907508578320c1e9e55fa7c77cd773 Mon Sep 17 00:00:00 2001 From: Jakub Kaderka Date: Wed, 13 Mar 2019 21:09:24 +0100 Subject: I2C not set as opendrain, fixed --- tools/mx2board.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3