diff options
| author | Scott Shawcroft <[email protected]> | 2022-03-03 16:53:22 -0800 |
|---|---|---|
| committer | Scott Shawcroft <[email protected]> | 2022-03-03 21:53:12 -0800 |
| commit | 2cd73ca60234748a15b74a2c346778fcb4f4ee61 (patch) | |
| tree | 1fd657340cc452f608f2477354a3bac8be7d939b /src/portable/raspberrypi | |
| parent | 7c627f58d785334cc701e0c4b3160e7fd573f88e (diff) | |
Add host string descriptor functions
Plus typo fixes, GCC11 array bounds fix, snprintf for malloc-free
debug and pragmas for alignment checks.
Diffstat (limited to 'src/portable/raspberrypi')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/rp2040_usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.c b/src/portable/raspberrypi/rp2040/rp2040_usb.c index 293cefaf6..be02493f0 100644 --- a/src/portable/raspberrypi/rp2040/rp2040_usb.c +++ b/src/portable/raspberrypi/rp2040/rp2040_usb.c @@ -58,8 +58,11 @@ void rp2040_usb_init(void) unreset_block_wait(RESETS_RESET_USBCTRL_BITS); // Clear any previous state just in case +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" memset(usb_hw, 0, sizeof(*usb_hw)); memset(usb_dpram, 0, sizeof(*usb_dpram)); +#pragma GCC diagnostic pop // Mux the controller to the onboard usb phy usb_hw->muxing = USB_USB_MUXING_TO_PHY_BITS | USB_USB_MUXING_SOFTCON_BITS; |
