Fix incorrect D- pulldown and cleanup USB device struct

This commit fixes the incorrect setting of the D- pulldown resistor in the USB LL.
The usb_struct.h used by USB device mode has also been cleaned up.
This commit is contained in:
Darian Leung
2022-02-10 17:10:27 +08:00
parent b979547b06
commit 7f51eb7e7c
2 changed files with 74 additions and 75 deletions

View File

@@ -38,6 +38,6 @@ static inline void usb_ll_int_phy_pullup_conf(bool dp_pu, bool dp_pd, bool dm_pu
conf.dp_pullup = dp_pu;
conf.dp_pulldown = dp_pd;
conf.dm_pullup = dm_pu;
conf.dm_pulldown = dp_pd;
conf.dm_pulldown = dm_pd;
USB_WRAP.otg_conf = conf;
}