29 #ifndef __USB_CONF__H__ 30 #define __USB_CONF__H__ 59 #ifndef USE_USB_OTG_FS 64 #define USB_OTG_FS_CORE 84 #ifndef USE_USB_OTG_HS 92 #ifndef USE_EMBEDDED_PHY 97 #define USB_OTG_HS_CORE 154 #ifdef USB_OTG_HS_CORE 155 #define RX_FIFO_HS_SIZE 512 156 #define TX0_FIFO_HS_SIZE 512 157 #define TX1_FIFO_HS_SIZE 512 158 #define TX2_FIFO_HS_SIZE 0 159 #define TX3_FIFO_HS_SIZE 0 160 #define TX4_FIFO_HS_SIZE 0 161 #define TX5_FIFO_HS_SIZE 0 162 #define TXH_NP_HS_FIFOSIZ 96 163 #define TXH_P_HS_FIFOSIZ 96 169 #define USB_OTG_EXTERNAL_VBUS_ENABLED 172 #define USB_OTG_ULPI_PHY_ENABLED 174 #ifdef USE_EMBEDDED_PHY 175 #define USB_OTG_EMBEDDED_PHY_ENABLED 177 #define USB_OTG_HS_INTERNAL_DMA_ENABLED 178 #define USB_OTG_HS_DEDICATED_EP1_ENABLED 182 #ifdef USB_OTG_FS_CORE 183 #define RX_FIFO_FS_SIZE 128 184 #define TX0_FIFO_FS_SIZE 64 185 #define TX1_FIFO_FS_SIZE 128 186 #define TX2_FIFO_FS_SIZE 0 187 #define TX3_FIFO_FS_SIZE 0 188 #define TXH_NP_HS_FIFOSIZ 96 189 #define TXH_P_HS_FIFOSIZ 96 200 #define USE_DEVICE_MODE 203 #ifndef USB_OTG_FS_CORE 204 #ifndef USB_OTG_HS_CORE 205 #error "USB_OTG_HS_CORE or USB_OTG_FS_CORE should be defined" 209 #ifndef USE_DEVICE_MODE 210 #ifndef USE_HOST_MODE 211 #error "USE_DEVICE_MODE or USE_HOST_MODE should be defined" 215 #ifndef USE_USB_OTG_HS 216 #ifndef USE_USB_OTG_FS 217 #error "USE_USB_OTG_HS or USE_USB_OTG_FS should be defined" 219 #else //USE_USB_OTG_HS 221 #ifndef USE_EMBEDDED_PHY 222 #error "USE_ULPI_PHY or USE_EMBEDDED_PHY should be defined" 230 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 231 #if defined (__GNUC__) 232 #define __ALIGN_END __attribute__ ((aligned (4))) 233 #define __ALIGN_BEGIN 236 #if defined (__CC_ARM) 237 #define __ALIGN_BEGIN __align(4) 238 #elif defined (__ICCARM__) 239 #define __ALIGN_BEGIN 240 #elif defined (__TASKING__) 241 #define __ALIGN_BEGIN __align(4) 245 #define __ALIGN_BEGIN 250 #if defined (__CC_ARM) 251 #define __packed __packed 252 #elif defined (__ICCARM__) 253 #define __packed __packed 254 #elif defined ( __GNUC__ ) 255 #define __packed __attribute__ ((__packed__)) 256 #elif defined (__TASKING__) 257 #define __packed __unaligned 295 #endif //__USB_CONF__H__ General low level driver configuration.