aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2019-02-21 13:24:07 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2019-02-21 13:24:07 -0500
commita4453c563cedb1c57dd10d189aa792b8e84d3feb (patch)
tree95263a6316d0bd87d1565a7f348df9942f32f548 /cores
parent49456f49d0d18d023e5617dc87ff4a5192a1f497 (diff)
Use endpoint number defines for ep allocation
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/USBCore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index f2a2365..aa52243 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -354,8 +354,8 @@ bool InitEPSize(const u8 index, const u8 type, const u8 nbanks, const u8 banksiz
static
void InitEndpoints()
{
- InitEPSize(1, EP_TYPE_INTERRUPT_IN, 1, 32); // Control Data Send
- InitEPSize(2, EP_TYPE_INTERRUPT_OUT, 1, 32); // Control Data Receive
+ InitEPSize(XINPUT_TX_ENDPOINT, EP_TYPE_INTERRUPT_IN, 1, 32); // Control Data Send
+ InitEPSize(XINPUT_RX_ENDPOINT, EP_TYPE_INTERRUPT_OUT, 1, 32); // Control Data Receive
InitEPSize(5, EP_TYPE_INTERRUPT_IN, 1, 32); // Expansion Interface NACK (avoid config reset)
UERST = 0x7E; // Reset endpoints