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
2021-05-07 19:42:31 +08:00
parent 7b2f2c2a86
commit 3bb5f86a53
3 changed files with 147 additions and 149 deletions

View File

@@ -37,6 +37,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;
}