Skip to content

Commit a3f65bf

Browse files
committed
Move EP defines to header
1 parent 251462e commit a3f65bf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hardware/arduino/avr/cores/arduino/USBAPI.h

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ typedef unsigned long u32;
4141
//================================================================================
4242
// USB
4343

44+
#define EP_TYPE_CONTROL 0x00
45+
#define EP_TYPE_BULK_IN 0x81
46+
#define EP_TYPE_BULK_OUT 0x80
47+
#define EP_TYPE_INTERRUPT_IN 0xC1
48+
#define EP_TYPE_INTERRUPT_OUT 0xC0
49+
#define EP_TYPE_ISOCHRONOUS_IN 0x41
50+
#define EP_TYPE_ISOCHRONOUS_OUT 0x40
51+
4452
class USBDevice_
4553
{
4654
public:

hardware/arduino/avr/cores/arduino/USBCore.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020

2121
#if defined(USBCON)
2222

23-
#define EP_TYPE_CONTROL 0x00
24-
#define EP_TYPE_BULK_IN 0x81
25-
#define EP_TYPE_BULK_OUT 0x80
26-
#define EP_TYPE_INTERRUPT_IN 0xC1
27-
#define EP_TYPE_INTERRUPT_OUT 0xC0
28-
#define EP_TYPE_ISOCHRONOUS_IN 0x41
29-
#define EP_TYPE_ISOCHRONOUS_OUT 0x40
30-
3123
/** Pulse generation counters to keep track of the number of milliseconds remaining for each pulse type */
3224
#define TX_RX_LED_PULSE_MS 100
3325
volatile u8 TxLEDPulse; /**< Milliseconds remaining for data Tx LED pulse */

0 commit comments

Comments
 (0)