Skip to content

Commit 8d863d9

Browse files
committed
fix mx2board for UCPD
1 parent 920e23c commit 8d863d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/mx2board.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def read_project(gpio, filename):
214214
tmp = mx_file.readlines()
215215
pads = {}
216216
mcu = 'Unknown'
217-
217+
218218
for l in tmp:
219219
if l.startswith('Mcu.Name'):
220220
mcu = l.split('=')[-1].strip()
@@ -242,7 +242,8 @@ def read_project(gpio, filename):
242242

243243
if prop_value.startswith('ADC') \
244244
or 'DAC' in prop_value \
245-
or 'OSC' in prop_value:
245+
or 'OSC' in prop_value \
246+
or 'UCPD' in prop_value:
246247
pads[pad_port][pad_num]["MODER"] = PIN_MODE_ANALOG
247248
pads[pad_port][pad_num]["SIGNAL"] = prop_value
248249
elif 'GPIO_Output' == prop_value:

0 commit comments

Comments
 (0)