X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/lx-cpu1/lx-rocon.git/blobdiff_plain/104a6bc720fe18901a0286cfaeef7ce175ef660d..a2413404f40398356b72e3b04187a2165e7ade19:/sw/app/rocon/usb/usb_defs.h diff --git a/sw/app/rocon/usb/usb_defs.h b/sw/app/rocon/usb/usb_defs.h index 0fbf6a3..30e827a 100644 --- a/sw/app/rocon/usb/usb_defs.h +++ b/sw/app/rocon/usb/usb_defs.h @@ -36,6 +36,7 @@ #define CDC0_EP_NOTIFY 0x81 #define CDC0_EP_RXD 0x02 #define CDC0_EP_TXD 0x82 +#define CDC0_MAX_PACKET 64 #define CONFIG_DESCRIPTOR_LENGTH \ sizeof(USB_CONFIGURATION_DESCRIPTOR) \ @@ -161,7 +162,7 @@ CODE const struct USB_DESCRIPTOR_TYPE_ENDPOINT, CDC0_EP_RXD, /* bEndpointAddress */ USB_ENDPOINT_TYPE_BULK, - SWAP(USB_MAX_PACKET), + SWAP(CDC0_MAX_PACKET), 0, /* bInterval (polling interval: 50ms) */ }, { @@ -170,7 +171,7 @@ CODE const struct USB_DESCRIPTOR_TYPE_ENDPOINT, CDC0_EP_TXD, /* bEndpointAddress */ USB_ENDPOINT_TYPE_BULK, - SWAP(USB_MAX_PACKET), + SWAP(CDC0_MAX_PACKET), 0, /* bInterval (polling interval: 50ms) */ } };