2 ******************************************************************************
\r
3 * @file FatFs/FatFs_USBDisk/Inc/usbh_conf.h
\r
4 * @author MCD Application Team
\r
6 * @date 26-February-2014
\r
7 * @brief General low level driver configuration
\r
8 ******************************************************************************
\r
11 * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
\r
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
\r
14 * You may not use this file except in compliance with the License.
\r
15 * You may obtain a copy of the License at:
\r
17 * http://www.st.com/software_license_agreement_liberty_v2
\r
19 * Unless required by applicable law or agreed to in writing, software
\r
20 * distributed under the License is distributed on an "AS IS" BASIS,
\r
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
22 * See the License for the specific language governing permissions and
\r
23 * limitations under the License.
\r
25 ******************************************************************************
\r
28 /* Define to prevent recursive inclusion -------------------------------------*/
\r
29 #ifndef __USBH_CONF__H__
\r
30 #define __USBH_CONF__H__
\r
32 /* Includes ------------------------------------------------------------------*/
\r
33 #include "stm32f4xx.h"
\r
38 /* Exported types ------------------------------------------------------------*/
\r
39 #define USBH_MAX_NUM_ENDPOINTS 2
\r
40 #define USBH_MAX_NUM_INTERFACES 2
\r
41 #define USBH_MAX_NUM_CONFIGURATION 1
\r
42 #define USBH_MAX_NUM_SUPPORTED_CLASS 1
\r
43 #define USBH_KEEP_CFG_DESCRIPTOR 0
\r
44 #define USBH_MAX_SIZE_CONFIGURATION 0x200
\r
45 #define USBH_MAX_DATA_BUFFER 0x200
\r
46 #define USBH_DEBUG_LEVEL 0
\r
47 #define USBH_USE_OS 0
\r
49 /* Exported constants --------------------------------------------------------*/
\r
50 /* Exported macro ------------------------------------------------------------*/
\r
51 /* CMSIS OS macros */
\r
52 #if (USBH_USE_OS == 1)
\r
53 #include "cmsis_os.h"
\r
54 #define USBH_PROCESS_PRIO osPriorityNormal
\r
57 /* Memory management macros */
\r
58 #define USBH_malloc malloc
\r
59 #define USBH_free free
\r
60 #define USBH_memset memset
\r
61 #define USBH_memcpy memcpy
\r
64 #if (USBH_DEBUG_LEVEL > 0)
\r
65 #define USBH_UsrLog(...) printf(__VA_ARGS__);\
\r
68 #define USBH_UsrLog(...)
\r
72 #if (USBH_DEBUG_LEVEL > 1)
\r
74 #define USBH_ErrLog(...) printf("ERROR: ") ;\
\r
75 printf(__VA_ARGS__);\
\r
78 #define USBH_ErrLog(...)
\r
81 #if (USBH_DEBUG_LEVEL > 2)
\r
82 #define USBH_DbgLog(...) printf("DEBUG : ") ;\
\r
83 printf(__VA_ARGS__);\
\r
86 #define USBH_DbgLog(...)
\r
89 /* Exported functions ------------------------------------------------------- */
\r
91 #endif /* __USB_CONF_H */
\r
93 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
\r