rp2040: Fixup lib and example compile for LLVM Embedded Toolchain for ARM

This commit is contained in:
graham sanderson
2023-03-02 14:32:22 -06:00
parent 34798ff85e
commit b7fa90e706
3 changed files with 19 additions and 5 deletions

View File

@@ -297,7 +297,7 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
if ( status & USB_INTS_SETUP_REQ_BITS )
{
handled |= USB_INTS_SETUP_REQ_BITS;
uint8_t const * setup = (uint8_t const*) &usb_dpram->setup_packet;
uint8_t const * setup = remove_volatile_cast(uint8_t const*, &usb_dpram->setup_packet);
// reset pid to both 1 (data and ack)
reset_ep0_pid();