Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#include "stm32f4xx_hal.h"
#include "stm324xg_eval.h"
#include "stm324xg_eval_lcd.h"
Exported constants
#define USE_IAP_TFTP
#define USE_IAP_HTTP
#define USE_LCD
#define USER_FLASH_FIRST_PAGE_ADDRESS
#define USER_FLASH_LAST_PAGE_ADDRESS
#define USER_FLASH_END_ADDRESS
#define USERID
#define PASSWORD
#define LOGIN_SIZE
#define IP_ADDR0
#define IP_ADDR1
#define IP_ADDR2
#define IP_ADDR3
#define NETMASK_ADDR0
#define NETMASK_ADDR1
#define NETMASK_ADDR2
#define NETMASK_ADDR3
#define GW_ADDR0
#define GW_ADDR1
#define GW_ADDR2
#define GW_ADDR3
Files
loading...
SourceVuSTM32 Libraries and SamplesLwIP_IAPInc/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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file LwIP/LwIP_IAP/Inc/main.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the main.c * file. ****************************************************************************** * @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 #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "stm324xg_eval.h" #include "stm324xg_eval_lcd.h" Includes /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* IAP options selection ******************************************************/ #define USE_IAP_TFTP /* enable IAP using TFTP */ #define USE_IAP_HTTP /* enable IAP using HTTP */ #define USE_LCD /* enable LCD */ /* Flash user area definition *************************************************/ /* IMPORTANT NOTE: ============== Be sure that USER_FLASH_FIRST_PAGE_ADDRESS do not overlap with IAP code. For example, with all option enabled the total readonly memory size using SW4STM32 IDE v2.1.0, with optimization for size, is 59784 bytes. Based on this result four sectors of 16 Kbytes and a sector of 64 Kbytes will be used to store the IAP code, so the user Flash address will start from Sector5. In this application the define USER_FLASH_FIRST_PAGE_ADDRESS is set to 128K boundary, but it can be changed to any other address outside the 1st 128 Kbytes of the Flash. *//* ... */ #define USER_FLASH_FIRST_PAGE_ADDRESS 0x08020000 /* Only as example see comment */ #define USER_FLASH_LAST_PAGE_ADDRESS 0x080E0000 #define USER_FLASH_END_ADDRESS 0x080FFFFF /* UserID and Password definition *********************************************/ #define USERID "user" #define PASSWORD "stm32" #define LOGIN_SIZE (17+ sizeof(USERID) + sizeof(PASSWORD)) /* Static IP Address definition ***********************************************/ #define IP_ADDR0 (uint8_t) 192 #define IP_ADDR1 (uint8_t) 168 #define IP_ADDR2 (uint8_t) 0 #define IP_ADDR3 (uint8_t) 10 /* NETMASK definition *********************************************************/ #define NETMASK_ADDR0 (uint8_t) 255 #define NETMASK_ADDR1 (uint8_t) 255 #define NETMASK_ADDR2 (uint8_t) 255 #define NETMASK_ADDR3 (uint8_t) 0 /* Gateway Address definition *************************************************/ #define GW_ADDR0 (uint8_t) 192 #define GW_ADDR1 (uint8_t) 168 #define GW_ADDR2 (uint8_t) 0 #define GW_ADDR3 (uint8_t) 1 21 defines Exported constants/* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ /* Exported function prototypes ----------------------------------------------*/ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __MAIN_H */
Details