4 ms·
The USB stack communicates with the device controller using a well defined interface. As long as a driver implements all of the methods in this interface, the U
by synack 5y ago
The USB stack communicates with the device controller using a well defined interface. As long as a driver implements all of the methods in this interface, the USB stack doesn't need to know anything about the hardware.
Interface: https://github.com/Fabien-Chouteau/usb_embedded/blob/main/src/usb-hal-device.ads https://github.com/Fabien-Chouteau/usb_embedded/blob/main/sr...
Implementation: https://github.com/JeremyGrosser/rp2040_hal/blob/master/src/drivers/rp-usb_device.adb https://github.com/JeremyGrosser/rp2040_hal/blob/master/src/...