From: drowe67 Date: Thu, 5 Nov 2015 21:44:32 +0000 (+0000) Subject: changed buffer size for faster USB transfers X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=b5407efc87e3f5fc18347fa8b166de9fa5888fd0;p=freetel-svn-tracking.git changed buffer size for faster USB transfers git-svn-id: https://svn.code.sf.net/p/freetel/code@2480 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/stm32/usb_conf/usb_conf.h b/codec2-dev/stm32/usb_conf/usb_conf.h index 3d246b21..9fa5459a 100644 --- a/codec2-dev/stm32/usb_conf/usb_conf.h +++ b/codec2-dev/stm32/usb_conf/usb_conf.h @@ -46,7 +46,7 @@ compiler preprocessor. */ #ifndef USE_USB_OTG_FS -#define USE_USB_OTG_FS + //#define USE_USB_OTG_FS #endif /* USE_USB_OTG_FS */ #ifndef USE_USB_OTG_HS @@ -54,7 +54,7 @@ #endif /* USE_USB_OTG_HS */ #ifndef USE_ULPI_PHY -#define USE_ULPI_PHY + //#define USE_ULPI_PHY #endif /* USE_ULPI_PHY */ #ifndef USE_EMBEDDED_PHY @@ -154,7 +154,7 @@ #ifdef USE_I2C_PHY #define USB_OTG_I2C_PHY_ENABLED #endif - #define USB_OTG_HS_INTERNAL_DMA_ENABLED +//#define USB_OTG_HS_INTERNAL_DMA_ENABLED #define USB_OTG_HS_DEDICATED_EP1_ENABLED #endif diff --git a/codec2-dev/stm32/usb_conf/usbd_conf.h b/codec2-dev/stm32/usb_conf/usbd_conf.h index cb08d455..9fc6d515 100644 --- a/codec2-dev/stm32/usb_conf/usbd_conf.h +++ b/codec2-dev/stm32/usb_conf/usbd_conf.h @@ -50,8 +50,10 @@ #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */ #define CDC_IN_FRAME_INTERVAL 5 /* Number of frames between IN transfers */ - #define APP_RX_DATA_SIZE 2048 /* Total size of IN buffer: - APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */ + + //#define APP_RX_DATA_SIZE 2048 /* Total size of IN buffer: */ + #define APP_RX_DATA_SIZE 10000 + #endif /* USE_USB_OTG_HS */ #define APP_FOPS VCP_fops