Fork of https://developer.mbed.org/users/bscott/code/STM32_USBDevice/
Fork of STM32_USBDevice by
Diff: USBDevice/USBEndpoints_STM32L1.h
- Revision:
- 79:d28244984385
- Parent:
- 77:a98f786d05d4
--- a/USBDevice/USBEndpoints_STM32L1.h Fri Oct 27 17:22:45 2017 +0200 +++ b/USBDevice/USBEndpoints_STM32L1.h Wed Jul 25 14:04:48 2018 +0200 @@ -46,22 +46,34 @@ /* Generic endpoints - intended to be portable accross devices */ /* and be suitable for simple USB devices. */ -/* Bulk endpoint */ +/* Bulk/CDC endpoint */ #define EPBULK_OUT (EP2OUT) #define EPBULK_IN (EP2IN) #define EPBULK_OUT_callback EP2_OUT_callback #define EPBULK_IN_callback EP2_IN_callback +#define EPCDC_OUT (EP2OUT) +#define EPCDC_IN (EP2IN) +#define EPCDC_OUT_callback EP2_OUT_callback +#define EPCDC_IN_callback EP2_IN_callback /* Interrupt endpoint */ #define EPINT_OUT (EP1OUT) #define EPINT_IN (EP1IN) #define EPINT_OUT_callback EP1_OUT_callback #define EPINT_IN_callback EP1_IN_callback -/* Isochronous endpoint */ -#define EPISO_OUT (EP3OUT) +/* Isochronous endpoint - not used, replaced by WebUSB endpoint */ +/*#define EPISO_OUT (EP3OUT) #define EPISO_IN (EP3IN) #define EPISO_OUT_callback EP3_OUT_callback -#define EPISO_IN_callback EP3_IN_callback +#define EPISO_IN_callback EP3_IN_callback*/ + +/* WebUSB endpoint (bulk) */ +#define EPWEBUSB_OUT (EP3OUT) +#define EPWEBUSB_IN (EP3IN) +#define EPWEBUSB_OUT_callback EP3_OUT_callback +#define EPWEBUSB_IN_callback EP3_IN_callback #define MAX_PACKET_SIZE_EPBULK (MAX_PACKET_SIZE_EP2) +#define MAX_PACKET_SIZE_EPCDC (MAX_PACKET_SIZE_EP2) #define MAX_PACKET_SIZE_EPINT (MAX_PACKET_SIZE_EP1) #define MAX_PACKET_SIZE_EPISO (MAX_PACKET_SIZE_EP3_ISO) +#define MAX_PACKET_SIZE_EPWEBUSB (MAX_PACKET_SIZE_EP3)