STSW-STLKT01: Projects/SensorTile/Applications/AudioLoop/Inc/usbd_conf.h Source File
STSW-STLKT01
33 #include "stm32l4xx_hal.h" 40 extern PCD_HandleTypeDef hpcd;
44 #define USBD_MAX_NUM_INTERFACES 2 45 #define USBD_MAX_NUM_CONFIGURATION 1 46 #define USBD_MAX_STR_DESC_SIZ 200 47 #define USBD_SUPPORT_USER_STRING 0 48 #define USBD_SELF_POWERED 1 49 #define USBD_DEBUG_LEVEL 0 52 #define USBD_AUDIO_FREQ 48000 53 #define AUDIO_TOTAL_IF_NUM 0x02 59 #define USBD_memset memset 60 #define USBD_memcpy memcpy 62 #ifdef USE_STATIC_ALLOCATION 64 #define USBD_free USBD_static_free 65 #define USBD_malloc USBD_static_malloc 66 #define MAX_STATIC_ALLOC_SIZE 1600/4 68 #define USBD_free free 69 #define USBD_malloc malloc 70 #define MAX_STATIC_ALLOC_SIZE 4 74 #if (USBD_DEBUG_LEVEL > 0) 75 #define USBD_UsrLog(...) printf(__VA_ARGS__);\ 78 #define USBD_UsrLog(...) 81 #if (USBD_DEBUG_LEVEL > 1) 83 #define USBD_ErrLog(...) printf("ERROR: ") ;\ 87 #define USBD_ErrLog(...) 90 #if (USBD_DEBUG_LEVEL > 2) 91 #define USBD_DbgLog(...) printf("DEBUG : ") ;\ 95 #define USBD_DbgLog(...)