/** ****************************************************************************** * @file FatFs/FatFs_USBDisk_RTOS/Inc/usbh_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__USBH_CONF_H#define__USBH_CONF_H/* Includes ------------------------------------------------------------------*/#include"stm32f4xx.h"#include<stdio.h>#include<stdlib.h>#include<string.h>Includes/* Exported types ------------------------------------------------------------*/#defineUSBH_MAX_NUM_ENDPOINTS2#defineUSBH_MAX_NUM_INTERFACES2#defineUSBH_MAX_NUM_CONFIGURATION1#defineUSBH_MAX_NUM_SUPPORTED_CLASS1#defineUSBH_KEEP_CFG_DESCRIPTOR0#defineUSBH_MAX_SIZE_CONFIGURATION0x200#defineUSBH_MAX_DATA_BUFFER0x200#defineUSBH_DEBUG_LEVEL0#defineUSBH_USE_OS19 definesExported types/* Exported constants --------------------------------------------------------*//* Exported macro ------------------------------------------------------------*//* CMSIS OS macros */#if(USBH_USE_OS==1)#include"cmsis_os.h"#defineUSBH_PROCESS_PRIOosPriorityNormal#defineUSBH_PROCESS_STACK_SIZE(8*configMINIMAL_STACK_SIZE)/* ... */#endif/* Memory management macros */#defineUSBH_mallocmalloc#defineUSBH_freefree#defineUSBH_memsetmemset#defineUSBH_memcpymemcpy/* DEBUG macros */#if(USBH_DEBUG_LEVEL>0)#defineUSBH_UsrLog(...)printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBH_UsrLog(...)#endif#if(USBH_DEBUG_LEVEL>1)#defineUSBH_ErrLog(...)printf("ERROR: ");\printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBH_ErrLog(...)#endif#if(USBH_DEBUG_LEVEL>2)#defineUSBH_DbgLog(...)printf("DEBUG : ");\printf(__VA_ARGS__);\printf("\n");.../* ... */#else#defineUSBH_DbgLog(...)#endifExported macro/* Exported functions ------------------------------------------------------- *//* ... */#endif/* __USB_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.