33 #ifndef __USBD_CONF__H__
34 #define __USBD_CONF__H__
39 #pragma clang diagnostic push
40 #pragma clang diagnostic ignored "-Wtypedef-redefinition"
48 #ifndef _BITS_STDINT_INTN_H
52 #ifndef _BITS_STDINT_UINTN_H
71 #define USBD_MAX_NUM_INTERFACES 3
73 #define USBD_MAX_NUM_CONFIGURATION 1
75 #define USBD_MAX_STR_DESC_SIZ 512
77 #define USBD_SUPPORT_USER_STRING 0
79 #define USBD_DEBUG_LEVEL 0
81 #define USBD_LPM_ENABLED 1
83 #define USBD_SELF_POWERED 1
94 #define USBD_malloc (uint32_t *)USBD_static_malloc
95 #define USBD_free USBD_static_free
99 #define USBD_Delay HAL_Delay
103 #if (USBD_DEBUG_LEVEL > 0)
104 #define USBD_UsrLog(...) printf(__VA_ARGS__);\
107 #define USBD_UsrLog(...)
111 #if (USBD_DEBUG_LEVEL > 1)
113 #define USBD_ErrLog(...) printf("ERROR: ") ;\
114 printf(__VA_ARGS__);\
117 #define USBD_ErrLog(...)
121 #if (USBD_DEBUG_LEVEL > 2)
122 #define USBD_DbgLog(...) printf("DEBUG : ") ;\
123 printf(__VA_ARGS__);\
126 #define USBD_DbgLog(...)
174 #pragma clang diagnostic pop
void * USBD_static_malloc(uint32_t size)
void USB_power(unsigned char enabled)
void USBD_static_free(void *p)
const volatile uint8_t * USBD_GetPinPadOffset(void)