STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
usbh_conf_template.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USBH_CONF_TEMPLATE_H
30 #define __USBH_CONF_TEMPLATE_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "stm32f4xx.h"
38 #include <stdio.h>
39 #include <stdlib.h>
40 #include <string.h>
41 
55 #define USBH_MAX_NUM_ENDPOINTS 2
56 #define USBH_MAX_NUM_INTERFACES 2
57 #define USBH_MAX_NUM_CONFIGURATION 1
58 #define USBH_KEEP_CFG_DESCRIPTOR 1
59 #define USBH_MAX_NUM_SUPPORTED_CLASS 1
60 #define USBH_MAX_SIZE_CONFIGURATION 0x200
61 #define USBH_MAX_DATA_BUFFER 0x200
62 #define USBH_DEBUG_LEVEL 2
63 #define USBH_USE_OS 1
64 
69  /* Memory management macros */
70 #define USBH_malloc malloc
71 #define USBH_free free
72 #define USBH_memset memset
73 #define USBH_memcpy memcpy
74 
75  /* DEBUG macros */
76 
77 
78 #if (USBH_DEBUG_LEVEL > 0)
79 #define USBH_UsrLog(...) printf(__VA_ARGS__);\
80  printf("\n");
81 #else
82 #define USBH_UsrLog(...)
83 #endif
84 
85 
86 #if (USBH_DEBUG_LEVEL > 1)
87 
88 #define USBH_ErrLog(...) printf("ERROR: ") ;\
89  printf(__VA_ARGS__);\
90  printf("\n");
91 #else
92 #define USBH_ErrLog(...)
93 #endif
94 
95 
96 #if (USBH_DEBUG_LEVEL > 2)
97 #define USBH_DbgLog(...) printf("DEBUG : ") ;\
98  printf(__VA_ARGS__);\
99  printf("\n");
100 #else
101 #define USBH_DbgLog(...)
102 #endif
103 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif /* __USBH_CONF_TEMPLATE_H */
147 
148 
156 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
157