1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
39
40
44
45
50
51
52
53
54
55
56
57
64
/* ... */
#ifndef __MAIN_H
#define __MAIN_H
#include "stdio.h"
#include "usbh_core.h"
#include "usbh_msc.h"
#include "stm32469i_discovery.h"
#include "stm32469i_discovery_lcd.h"
#include "lcd_log.h"
#include "ff.h"
#include "ff_gen_drv.h"
#include "usbh_diskio_dma.h"
9 includes
Includes
typedef enum {
MSC_DEMO_START = 0,
MSC_DEMO_FILE_OPERATIONS,
MSC_DEMO_EXPLORER,
...}MSC_Demo_State;
typedef struct _DemoStateMachine {
__IO MSC_Demo_State state;
__IO uint8_t select;
...}MSC_DEMO_StateMachine;
typedef enum {
APPLICATION_IDLE = 0,
APPLICATION_READY,
APPLICATION_DISCONNECT,
...}MSC_ApplicationTypeDef;
extern USBH_HandleTypeDef hUSBHost;
extern FATFS USBH_fatfs;
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