diff options
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cores/arduino/main.cpp b/cores/arduino/main.cpp index 72074de..f4346ec 100644 --- a/cores/arduino/main.cpp +++ b/cores/arduino/main.cpp @@ -27,6 +27,9 @@ int atexit(void (* /*func*/ )()) { return 0; } void initVariant() __attribute__((weak)); void initVariant() { } +void setupUSB() __attribute__((weak)); +void setupUSB() { } + int main(void) { init(); @@ -34,6 +37,7 @@ int main(void) initVariant(); #if defined(USBCON) + setupUSB(); USBDevice.attach(); #endif |