Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#include "stdio.h"
#include "usbh_core.h"
#include "stm32446e_eval.h"
#include "stm32446e_eval_io.h"
#include "stm32446e_eval_lcd.h"
#include "usbh_msc.h"
#include "ff.h"
#include "ff_gen_drv.h"
#include "usbh_diskio_dma.h"
#include "flash_if.h"
#include "command.h"
Exported types
FW_ApplicationTypeDef
hUSBHost;
USBH_fatfs;
Appli_state;
UploadCondition;
Exported constants
#define BUFFER_SIZE
Exported functions
FW_UPGRADE_Process();
Fail_Handler();
FatFs_Fail_Handler();
Erase_Fail_Handler();
Files
loading...
CodeScopeSTM32 Libraries and SamplesFWupgrade_StandaloneInc/main.h
 
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/FWupgrade_Standalone/Inc/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @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 __MAIN_H #define __MAIN_H /* Includes ------------------------------------------------------------------*/ #include "stdio.h" #include "usbh_core.h" #include "stm32446e_eval.h" #include "stm32446e_eval_io.h" #include "stm32446e_eval_lcd.h" #include "usbh_msc.h" #include "ff.h" #include "ff_gen_drv.h" #include "usbh_diskio_dma.h" #include "flash_if.h" #include "command.h" 11 includes Includes/* Exported types ------------------------------------------------------------*/ typedef enum { APPLICATION_IDLE = 0, APPLICATION_READY, APPLICATION_CONNECT, APPLICATION_DISCONNECT, ...}FW_ApplicationTypeDef; extern USBH_HandleTypeDef hUSBHost; extern FATFS USBH_fatfs; extern FW_ApplicationTypeDef Appli_state; extern __IO uint32_t UploadCondition; Exported types /* Exported constants --------------------------------------------------------*/ /* This value can be equal to (512 * x) according to RAM size availability with x=[1, 128] In this project x is fixed to 64 => 512 * 64 = 32768bytes = 32 Kbytes *//* ... */ #define BUFFER_SIZE ((uint16_t)512*64) Exported constants /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void FW_UPGRADE_Process(void); void Fail_Handler(void); void FatFs_Fail_Handler(void); void Erase_Fail_Handler(void); Exported functions /* ... */#endif /* __MAIN_H */