We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01edbb8 commit 73f22e3Copy full SHA for 73f22e3
src/portable/raspberrypi/rp2040/rp2040_usb.c
@@ -57,15 +57,19 @@ void rp2040_usb_init(void)
57
reset_block(RESETS_RESET_USBCTRL_BITS);
58
unreset_block_wait(RESETS_RESET_USBCTRL_BITS);
59
60
+#ifdef __GNUC__
61
// Clear any previous state just in case
62
#pragma GCC diagnostic push
63
#pragma GCC diagnostic ignored "-Warray-bounds"
64
#if __GNUC__ > 6
65
#pragma GCC diagnostic ignored "-Wstringop-overflow"
66
+#endif
67
#endif
68
memset(usb_hw, 0, sizeof(*usb_hw));
69
memset(usb_dpram, 0, sizeof(*usb_dpram));
70
71
#pragma GCC diagnostic pop
72
73
74
// Mux the controller to the onboard usb phy
75
usb_hw->muxing = USB_USB_MUXING_TO_PHY_BITS | USB_USB_MUXING_SOFTCON_BITS;
0 commit comments