RP2040: no need to clear usb_hw (usb registers) as they are reset to default state by a hardware reset

This commit is contained in:
Liam Fraser 2024-07-17 15:40:34 +01:00
parent 770efd9b46
commit 3804ab9a67

View File

@ -75,7 +75,6 @@ void rp2040_usb_init(void) {
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
#endif
memset(usb_hw, 0, sizeof(*usb_hw));
memset(usb_dpram, 0, sizeof(*usb_dpram));
#ifdef __GNUC__
#pragma GCC diagnostic pop