Open
Description
The Arduino Core API defines a very low level USB api in api/USBAPI.h. This API is implemented by the avr core in cores/arduino/USBCore.cpp. But it is not implemented by samd core, which implements the same functionality but in its own USBDeviceClass
class. The USB implementation in megaavr core (USBCore.cpp
) is a copy of the avr usb implementation with some deviations. The mbed core implements its own version of the PluggableUSBModule
.
As a result, each core implements its own USB API which is incompatible with the others, there exist many code duplicates and users of the USB API have to understand and adapt their code to each individual core implementation.
Are there any plans to improve this situation?
Metadata
Metadata
Assignees
Labels
No labels