STSW-STLKT01: Projects/SensorTile/Applications/DataLog/Inc/usbd_conf.h Source File

STSW-STLKT01

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 "stm32l4xx_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 /* Exported macro ------------------------------------------------------------*/
69 /* Memory management macros */
70 #define USBD_malloc malloc
71 #define USBD_free free
72 #define USBD_memset memset
73 #define USBD_memcpy memcpy
74 
75 /* DEBUG macros */
76 #if (USBD_DEBUG_LEVEL > 0)
77 #define USBD_UsrLog(...) printf(__VA_ARGS__);\
78  printf("\n");
79 #else
80 #define USBD_UsrLog(...)
81 #endif
82 
83 #if (USBD_DEBUG_LEVEL > 1)
84 
85 #define USBD_ErrLog(...) printf("ERROR: ") ;\
86  printf(__VA_ARGS__);\
87  printf("\n");
88 #else
89 #define USBD_ErrLog(...)
90 #endif
91 
92 #if (USBD_DEBUG_LEVEL > 2)
93 #define USBD_DbgLog(...) printf("DEBUG : ") ;\
94  printf(__VA_ARGS__);\
95  printf("\n");
96 #else
97 #define USBD_DbgLog(...)
98 #endif
99 
100 /* Exported functions ------------------------------------------------------- */
101 
102 #endif /* __USBD_CONF_H */
103 
104 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated by   doxygen 1.8.13