|
|
@@ -243,17 +243,11 @@ static const uint8_t cdc_msc_descriptor[] = {
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
-USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t read_buffer[2048];
|
|
|
+USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t read_buffer[2048]; /* 2048 is only for test speed , please use CDC_MAX_MPS for common*/
|
|
|
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t write_buffer[2048];
|
|
|
|
|
|
volatile bool ep_tx_busy_flag = false;
|
|
|
|
|
|
-#ifdef CONFIG_USB_HS
|
|
|
-#define CDC_MAX_MPS 512
|
|
|
-#else
|
|
|
-#define CDC_MAX_MPS 64
|
|
|
-#endif
|
|
|
-
|
|
|
static void usbd_event_handler(uint8_t busid, uint8_t event)
|
|
|
{
|
|
|
switch (event) {
|