Skip to content

Commit

Permalink
Adapt samd port to ArduinoCore-API
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Dec 22, 2020
1 parent 285366b commit 80b6fac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MIDIUSB.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@

#elif defined(ARDUINO_ARCH_SAMD)

#if defined(ARDUINO_API_VERSION)
#include "api/PluggableUSB.h"
#define EPTYPE_DESCRIPTOR_SIZE unsigned int
#else
#include "USB/PluggableUSB.h"

#define EPTYPE_DESCRIPTOR_SIZE uint32_t
#endif
#define EP_TYPE_BULK_IN_MIDI USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0);
#define EP_TYPE_BULK_OUT_MIDI USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_OUT(0);
#define MIDI_BUFFER_SIZE EPX_SIZE
Expand Down

0 comments on commit 80b6fac

Please sign in to comment.