1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
33
40
41
45
46
51
52
53
54
55
56
57
58
59
60
66
/* ... */
#ifndef __MAIN_H
#define __MAIN_H
#include "stdio.h"
#include "usbh_core.h"
#include "usbh_msc.h"
#include "stm324x9i_eval_io.h"
#include "lcd_log.h"
#include "ff.h"
#include "ff_gen_drv.h"
#include "usbh_diskio_dma.h"
8 includes
Includes
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,
APPLICATION_DISCONNECT = 1,
APPLICATION_READY,
...}MSC_ApplicationTypeDef;
extern FATFS USBH_fatfs;
extern USBH_HandleTypeDef hUSBHost;
extern FATFS USBH_fatfs;
extern osMessageQId AppliEvent;
extern MSC_ApplicationTypeDef Appli_state;
Exported types
FRESULT Explore_Disk(char *path, uint8_t recu_level);
void MSC_File_Operations(void);
void Toggle_Leds(void);
void Menu_Init(void);
void MSC_MenuProcess(void);Exported functions
/* ... */#endif