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:
@@ -75,7 +75,6 @@ void rp2040_usb_init(void) {
|
|||||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
memset(usb_hw, 0, sizeof(*usb_hw));
|
|
||||||
memset(usb_dpram, 0, sizeof(*usb_dpram));
|
memset(usb_dpram, 0, sizeof(*usb_dpram));
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
Reference in New Issue
Block a user