mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 15:10:33 +09:00
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>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user