/** ****************************************************************************** * @file USB_Host/MSC_RTOS/Inc/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @attention * * Copyright (c) 2018 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 __MAIN_H #define __MAIN_H /* Includes ----------------------------------------------------------------- */ #include "stdio.h" #include "stm32f7308_discovery_ts.h" #include "lcd_log.h" #include "usbh_core.h" #include "usbh_msc.h" #include "ff.h" #include "ff_gen_drv.h" #include "usbh_diskio_dma.h" /* Exported types ----------------------------------------------------------- */ typedef enum { MSC_DEMO_IDLE = 0, MSC_DEMO_WAIT, MSC_DEMO_FILE_OPERATIONS, MSC_DEMO_EXPLORER, MSC_REENUMERATE, } MSC_Demo_State; typedef struct _DemoStateMachine { __IO MSC_Demo_State state; __IO uint8_t select; } MSC_DEMO_StateMachine; typedef enum { APPLICATION_IDLE = 0, APPLICATION_DISCONNECT, APPLICATION_READY, } MSC_ApplicationTypeDef; extern USBH_HandleTypeDef hUSBHost; extern FATFS USBH_fatfs; extern osMessageQId AppliEvent; extern MSC_ApplicationTypeDef Appli_state; /* Exported constants ------------------------------------------------------- */ /* Exported macro ----------------------------------------------------------- */ /* Exported functions ------------------------------------------------------- */ uint8_t Touchscreen_Calibration(void); uint16_t TouchScreen_Get_Calibrated_X(uint16_t x); uint16_t TouchScreen_Get_Calibrated_Y(uint16_t y); uint8_t TouchScreen_IsCalibrationDone(void); FRESULT Explore_Disk(char *path, uint8_t recu_level); void MSC_File_Operations(void); void Menu_Init(void); void MSC_MenuProcess(void); #endif /* __MAIN_H */