aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/usb_cdc.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-08-03 21:26:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-08-06 23:36:05 -0400
commit635a199a470969f830f2da6dc87694a09cdb196d (patch)
tree7f35e7ca865491c5624cf42ee69594572f4bf7a2 /src/generic/usb_cdc.h
parentf4910e119a11536c71aabf17871fa4e79e4df0d7 (diff)
downloadkutter-635a199a470969f830f2da6dc87694a09cdb196d.tar.gz
kutter-635a199a470969f830f2da6dc87694a09cdb196d.tar.xz
kutter-635a199a470969f830f2da6dc87694a09cdb196d.zip
usb_cdc: Allow USB endpoint ids to be board specific
It's common for boards to have restrictions on the type of each endpoint. So, make it possible for the board to select the endpoint ids for each endpoint. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/generic/usb_cdc.h')
-rw-r--r--src/generic/usb_cdc.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/generic/usb_cdc.h b/src/generic/usb_cdc.h
index c5450bfa..2e63b7a3 100644
--- a/src/generic/usb_cdc.h
+++ b/src/generic/usb_cdc.h
@@ -3,17 +3,11 @@
#include <stdint.h> // uint_fast8_t
+// endpoint sizes
enum {
USB_CDC_EP0_SIZE = 16,
-
- // XXX - endpoint ids may need to changed per-board
- USB_CDC_EP_ACM = 1,
USB_CDC_EP_ACM_SIZE = 8,
-
- USB_CDC_EP_BULK_OUT = 2,
USB_CDC_EP_BULK_OUT_SIZE = 64,
-
- USB_CDC_EP_BULK_IN = 5,
USB_CDC_EP_BULK_IN_SIZE = 64,
};