I2C not set as opendrain, fixed
This commit is contained in:
parent
bfa9d76d37
commit
814a79bfaf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue