Merge pull request #1933 from kilograham/rp2040_llvm_tweaks

make rp2040 code compile cleanly with LLVM embedded toochain for ARM.
This commit is contained in:
Ha Thach
2023-03-06 15:24:51 +07:00
committed by GitHub
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();