#define USB_DESC_LIST_DEFINE | #define USB_DESC_LIST_DEFINE | ||||
#include "usb_desc.h" | #include "usb_desc.h" | ||||
#if F_CPU >= 20000000 | |||||
#if F_CPU >= 20000000 && !defined(USB_DISABLED) | |||||
// This header is NOT meant to be included when compiling | // This header is NOT meant to be included when compiling | ||||
// user sketches in Arduino. The low-level functions | // user sketches in Arduino. The low-level functions |
#if F_CPU >= 20000000 | #if F_CPU >= 20000000 | ||||
#ifdef CDC_DATA_INTERFACE | #ifdef CDC_DATA_INTERFACE | ||||
#ifdef CDC_STATUS_INTERFACE | |||||
usb_serial_class Serial; | usb_serial_class Serial; | ||||
#endif | #endif | ||||
#endif | |||||
#ifdef MIDI_INTERFACE | #ifdef MIDI_INTERFACE | ||||
usb_midi_class usbMIDI; | usb_midi_class usbMIDI; | ||||
uint8_t usb_joystick_class::manual_mode = 0; | uint8_t usb_joystick_class::manual_mode = 0; | ||||
#endif | #endif | ||||
#ifdef USB_DISABLED | |||||
usb_serial_class Serial; | |||||
#endif | |||||
#else // F_CPU < 20 MHz | #else // F_CPU < 20 MHz | ||||
#include "usb_desc.h" | #include "usb_desc.h" | ||||
#if defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE) | |||||
#if (defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE)) || defined(USB_DISABLED) | |||||
#include <inttypes.h> | #include <inttypes.h> | ||||
#if F_CPU >= 20000000 | |||||
#if F_CPU >= 20000000 && !defined(USB_DISABLED) | |||||
// C language implementation | // C language implementation | ||||
#ifdef __cplusplus | #ifdef __cplusplus |