EU1KY AA FW
usbd_conf.h
Go to the documentation of this file.
1 
48 /* Define to prevent recursive inclusion -------------------------------------*/
49 #ifndef __USBD_CONF_H
50 #define __USBD_CONF_H
51 
52 /* Includes ------------------------------------------------------------------*/
53 #include "stm32f7xx_hal.h"
54 #include <stdio.h>
55 #include <stdlib.h>
56 #include <string.h>
57 
58 /* Exported types ------------------------------------------------------------*/
59 /* Exported constants --------------------------------------------------------*/
60 /* Common Config */
61 #define USBD_MAX_NUM_INTERFACES 1
62 #define USBD_MAX_NUM_CONFIGURATION 1
63 #define USBD_MAX_STR_DESC_SIZ 0x100
64 #define USBD_SUPPORT_USER_STRING 0
65 #define USBD_SELF_POWERED 1
66 #define USBD_DEBUG_LEVEL 0
67 
68 /* MSC Class Config */
69 #define MSC_MEDIA_PACKET 512
70 
71 /* Exported macro ------------------------------------------------------------*/
72 /* Memory management macros */
73 #define USBD_malloc malloc
74 #define USBD_free free
75 #define USBD_memset memset
76 #define USBD_memcpy memcpy
77 
78 /* DEBUG macros */
79 #if (USBD_DEBUG_LEVEL > 0)
80 #define USBD_UsrLog(...) printf(__VA_ARGS__);\
81  printf("\n");
82 #else
83 #define USBD_UsrLog(...)
84 #endif
85 
86 #if (USBD_DEBUG_LEVEL > 1)
87 
88 #define USBD_ErrLog(...) printf("ERROR: ") ;\
89  printf(__VA_ARGS__);\
90  printf("\n");
91 #else
92 #define USBD_ErrLog(...)
93 #endif
94 
95 #if (USBD_DEBUG_LEVEL > 2)
96 #define USBD_DbgLog(...) printf("DEBUG : ") ;\
97  printf(__VA_ARGS__);\
98  printf("\n");
99 #else
100 #define USBD_DbgLog(...)
101 #endif
102 
103 /* Exported functions ------------------------------------------------------- */
104 
105 #endif /* __USBD_CONF_H */
106 
107 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/