Adafruit_TinyUSB_Arduino icon indicating copy to clipboard operation
Adafruit_TinyUSB_Arduino copied to clipboard

Remove the need for periodical timer to run usb task for rp2040

Open hathach opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently rp2040 port use an periodic timer to run usb task, triggered every 1ms, which is pretty wasteful.

https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/5be0b21c0a5cf396b139bce0c6c0d403df051b0a/src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp#L84-L91

Describe the solution you'd like We should make use of https://github.com/hathach/tinyusb/pull/1519 to register an shared IRQ to know when to invoke usb task.

hathach avatar Jul 12 '22 04:07 hathach