Skip to content

Commit e048556

Browse files
committed
[stm32variant] Fix USB mode when AF is not none
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent a5266c7 commit e048556

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CI/utils/stm32variant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,8 @@ def usb_pinmap(lst):
810810
wpin.append(len(p[0]))
811811
r = result.split(" ")
812812
for af in r:
813+
if p[2].startswith("USB_D") and "NONE" not in af:
814+
mode = "STM_MODE_AF_PP"
813815
usb_pins_list.append(
814816
{
815817
"hsinfs": hsinfs,

0 commit comments

Comments
 (0)