aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-11 17:53:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-06-27 10:50:23 -0400
commit11828387d93f1f68107858d98fc81e2e29b5edf6 (patch)
tree790d0fb83d6c30daef5700b88f5befd78cee8f7c /src
parentf5d5f53914d46dfccdd21399e44f8af71a8f345a (diff)
downloadkutter-11828387d93f1f68107858d98fc81e2e29b5edf6.tar.gz
kutter-11828387d93f1f68107858d98fc81e2e29b5edf6.tar.xz
kutter-11828387d93f1f68107858d98fc81e2e29b5edf6.zip
usb_cdc_ep: Change default endpoint numbers
Change the default endpoint numbers to make it possible to implement the "gs_usb" canbus protocol. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/atsamd/usbserial.c2
-rw-r--r--src/generic/usb_cdc_ep.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/atsamd/usbserial.c b/src/atsamd/usbserial.c
index 273c3dbd..e3848926 100644
--- a/src/atsamd/usbserial.c
+++ b/src/atsamd/usbserial.c
@@ -26,7 +26,7 @@ static uint8_t __aligned(4) acmin[USB_CDC_EP_ACM_SIZE];
static uint8_t __aligned(4) bulkout[USB_CDC_EP_BULK_OUT_SIZE];
static uint8_t __aligned(4) bulkin[USB_CDC_EP_BULK_IN_SIZE];
-static UsbDeviceDescriptor usb_desc[USB_CDC_EP_BULK_IN + 1] = {
+static UsbDeviceDescriptor usb_desc[] = {
[0] = { {
{
.ADDR.reg = (uint32_t)ep0out,
diff --git a/src/generic/usb_cdc_ep.h b/src/generic/usb_cdc_ep.h
index 1ca97a79..f7521580 100644
--- a/src/generic/usb_cdc_ep.h
+++ b/src/generic/usb_cdc_ep.h
@@ -3,9 +3,9 @@
// Default USB endpoint ids
enum {
- USB_CDC_EP_ACM = 1,
+ USB_CDC_EP_BULK_IN = 1,
USB_CDC_EP_BULK_OUT = 2,
- USB_CDC_EP_BULK_IN = 3,
+ USB_CDC_EP_ACM = 3,
};
#endif // usb_cdc_ep.h