usbd_conf.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __USBD_CONF__H__
24 #define __USBD_CONF__H__
25 
26 /* Includes ------------------------------------------------------------------*/
27 #include "stm32f4xx.h"
28 
32 #define USBD_CFG_MAX_NUM 1
33 #define USBD_ITF_MAX_NUM 1
34 #define USB_MAX_STR_DESC_SIZ 255
35 
39 #define CDC_IN_EP 0x81 /* EP1 for data IN */
40 #define CDC_OUT_EP 0x01 /* EP1 for data OUT */
41 #define CDC_CMD_EP 0x82 /* EP2 for CDC commands */
42 
43 #define HID_IN_EP 0x83
44 #define HID_IN_PACKET 8
45 
46 /* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
47 #ifdef USE_USB_OTG_HS
48 #define CDC_DATA_MAX_PACKET_SIZE 512 /* Endpoint IN & OUT Packet size */
49 #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */
50 
51 #define CDC_IN_FRAME_INTERVAL 40 /* Number of micro-frames between IN transfers */
52 #define APP_RX_DATA_SIZE 2048 /* Total size of IN buffer:
53  APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL*8 */
54 #define APP_TX_DATA_SIZE 2048 /* total size of the OUT (inbound to FC) buffer */
55 #else
56 #define CDC_DATA_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */
57 #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */
58 
59 #define CDC_IN_FRAME_INTERVAL 1 /* Number of frames between IN transfers */
60 #define APP_RX_DATA_SIZE 2048 /* Total size of IN (outbound from FC) buffer:
61  APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */
62 #define APP_TX_DATA_SIZE 2048 /* total size of the OUT (inbound to FC) buffer */
63 #endif /* USE_USB_OTG_HS */
64 
65 /* MSC */
66 #define MSC_IN_EP 0x81
67 #define MSC_OUT_EP 0x01
68 #ifdef USE_USB_OTG_HS
69 #ifdef USE_ULPI_PHY
70 #define MSC_MAX_PACKET 512
71 #else
72 #define MSC_MAX_PACKET 64
73 #endif
74 #else /*USE_USB_OTG_FS*/
75 #define MSC_MAX_PACKET 64
76 #endif
77 
78 
79 #define MSC_MEDIA_PACKET 4096
80 /* END MSC */
81 
82 #define APP_FOPS VCP_fops
83 
117 #endif //__USBD_CONF__H__
118 
119 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:20