34 #ifndef __USBD_CONF__H__ 35 #define __USBD_CONF__H__ 43 #include "stm32f0xx.h" 44 #include "stm32f0xx_hal.h" 61 #define USBD_MAX_NUM_INTERFACES 1 63 #define USBD_MAX_NUM_CONFIGURATION 1 65 #define USBD_MAX_STR_DESC_SIZ 512 67 #define USBD_SUPPORT_USER_STRING 0 69 #define USBD_DEBUG_LEVEL 0 71 #define USBD_SELF_POWERED 1 73 #define USBD_CDC_INTERVAL 1000 75 #define MAX_STATIC_ALLOC_SIZE 512 85 #define USBD_malloc (uint32_t *)USBD_static_malloc 86 #define USBD_free USBD_static_free 90 #define USBD_Delay HAL_Delay 94 #if (USBD_DEBUG_LEVEL > 0) 95 #define USBD_UsrLog(...) printf(__VA_ARGS__);\ 98 #define USBD_UsrLog(...) 102 #if (USBD_DEBUG_LEVEL > 1) 104 #define USBD_ErrLog(...) printf("ERROR: ") ;\ 105 printf(__VA_ARGS__);\ 108 #define USBD_ErrLog(...) 112 #if (USBD_DEBUG_LEVEL > 2) 113 #define USBD_DbgLog(...) printf("DEBUG : ") ;\ 114 printf(__VA_ARGS__);\ 117 #define USBD_DbgLog(...) 164 #endif //__USBD_CONF__H__ uint32_t size
Definition: sd_buffer.h:94
void USBD_static_free(void *p)
Dummy memory free.
Definition: usbd_conf.c:494
void * USBD_static_malloc(uint32_t size)
static single allocation.
Definition: usbd_conf.c:483