diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-03 21:26:49 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-06 23:36:05 -0400 |
commit | 635a199a470969f830f2da6dc87694a09cdb196d (patch) | |
tree | 7f35e7ca865491c5624cf42ee69594572f4bf7a2 /src/generic/usb_cdc.c | |
parent | f4910e119a11536c71aabf17871fa4e79e4df0d7 (diff) | |
download | kutter-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.c')
-rw-r--r-- | src/generic/usb_cdc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generic/usb_cdc.c b/src/generic/usb_cdc.c index 04b02da0..dfc88511 100644 --- a/src/generic/usb_cdc.c +++ b/src/generic/usb_cdc.c @@ -6,12 +6,13 @@ #include <string.h> // memmove #include "board/pgm.h" // PROGMEM -#include "board/usb_cdc.h" // usb_notify_setup +#include "board/usb_cdc_ep.h" // USB_CDC_EP_BULK_IN #include "byteorder.h" // cpu_to_le16 #include "command.h" // output #include "generic/usbstd.h" // struct usb_device_descriptor #include "generic/usbstd_cdc.h" // struct usb_cdc_header_descriptor #include "sched.h" // sched_wake_task +#include "usb_cdc.h" // usb_notify_setup // XXX - move to Kconfig #define CONFIG_USB_VENDOR_ID 0x2341 |