adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
470 stars 124 forks source link

Dynamically pick task IRQ for Pico SDK 1.4.0 #186

Closed earlephilhower closed 2 years ago

earlephilhower commented 2 years ago

The hardcoded periodic USB task IRQ conflicts with the IRQ used by the new Pico SDK 1.4.0 WiFi support. A new API call was added in 1.4.0 to allow the system to select a free IRQ, so use it. Default to the hardcoded one on earlier SDK versions (since those don't have the new API call).

Fixes a crash found in https://github.com/earlephilhower/arduino-pico/pull/670

hathach commented 2 years ago

PS: Just release this as 1.14.0, Hope this will help to speed up the picow support pr https://github.com/adafruit/Adafruit_TinyUSB_Arduino/releases/tag/1.14.0

earlephilhower commented 2 years ago

Thanks for the fast merge and release, @hathach !

hathach commented 2 years ago

no problems, adding picow support is lots of works, I don't want this block your PR :)