Control Surface  1.2.0
MIDI Control Surface library for Arduino
USBMIDI.cpp
Go to the documentation of this file.
1 #ifdef ARDUINO
2 
3 #if defined(TEENSYDUINO)
4 
5 #if defined(__AVR__) /* Teensy 2.x */
6 #include "USBMIDI_Teensy2.ipp"
7 
8 #elif defined(__MK20DX128__) /* Teensy 3.0 */ \
9  || defined(__MK20DX256__) /* Teensy 3.1/3.2 */ \
10  || defined(__MK64FX512__) /* Teensy 3.5 */ \
11  || defined(__MK66FX1M0__) /* Teensy 3.6 */
12 #include "USBMIDI_Teensy3.ipp"
13 
14 #elif defined(__IMXRT1062__) || defined(__IMXRT1052__) /* Teensy 4.0 */
15 #include "USBMIDI_Teensy4.ipp"
16 
17 #elif defined(__MKL26Z64__) /* Teensy LC */
18 #include "USBMIDI_TeensyLC.ipp"
19 
20 #else
21 #warning "Unknown Teensy board, please open an issue on GitHub" \
22  "https://github.com/tttapa/Arduino-Helpers"
23 // Fall back to the MIDIUSB library and hope for the best
24 #include "USBMIDI_MIDIUSB.ipp"
25 #endif
26 
27 #else // Not a Teensy
28 
29 #include <AH/Arduino-Wrapper.h>
30 
31 #ifdef USBCON
32 #include "USBMIDI_MIDIUSB.ipp"
33 #endif
34 
35 #endif
36 
37 #endif
USBMIDI_Teensy4.ipp
USBMIDI_Teensy2.ipp
USBMIDI_TeensyLC.ipp
Arduino-Wrapper.h
USBMIDI_Teensy3.ipp
USBMIDI_MIDIUSB.ipp