/** ****************************************************************************** * @file USB_Device/HID_LPM_Standalone/Inc/usbd_conf.h * @author MCD Application Team * @brief General low level driver configuration ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... *//* Define to prevent recursive inclusion -------------------------------------*/#ifndef__USBD_CONF_H#define__USBD_CONF_H/* Includes ------------------------------------------------------------------*/#include"stm32f4xx_hal.h"#include<stdio.h>#include<stdlib.h>#include<string.h>Includes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*//* Common Config */#defineUSBD_MAX_NUM_INTERFACES1#defineUSBD_MAX_NUM_CONFIGURATION1#defineUSBD_MAX_STR_DESC_SIZ0x100#defineUSBD_SELF_POWERED1#defineUSBD_DEBUG_LEVEL05 defines#ifndefUSBD_LPM_ENABLED#defineUSBD_LPM_ENABLED1#endifExported constants/* Exported macro ------------------------------------------------------------*//* Memory management macros */#defineUSBD_mallocmalloc#defineUSBD_freefree#defineUSBD_memsetmemset#defineUSBD_memcpymemcpy#defineUSBD_DelayHAL_Delay5 defines/* DEBUG macros */#if(USBD_DEBUG_LEVEL>0)#defineUSBD_UsrLog(...)printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBD_UsrLog(...)#endif#if(USBD_DEBUG_LEVEL>1)#defineUSBD_ErrLog(...)printf("ERROR: ");\printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBD_ErrLog(...)#endif#if(USBD_DEBUG_LEVEL>2)#defineUSBD_DbgLog(...)printf("DEBUG : ");\printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBD_DbgLog(...)#endifExported macro/* Exported functions ------------------------------------------------------- *//* ... */#endif/* __USBD_CONF_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.