/** ****************************************************************************** * @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__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"stm32f4xx_hal.h"#include"stm324xg_eval.h"#include"stm324xg_eval_lcd.h"Includes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*//* IAP options selection ******************************************************/#defineUSE_IAP_TFTP/* enable IAP using TFTP */#defineUSE_IAP_HTTP/* enable IAP using HTTP */#defineUSE_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. *//* ... */#defineUSER_FLASH_FIRST_PAGE_ADDRESS0x08020000/* Only as example see comment */#defineUSER_FLASH_LAST_PAGE_ADDRESS0x080E0000#defineUSER_FLASH_END_ADDRESS0x080FFFFF/* UserID and Password definition *********************************************/#defineUSERID"user"#definePASSWORD"stm32"#defineLOGIN_SIZE(17+sizeof(USERID)+sizeof(PASSWORD))/* Static IP Address definition ***********************************************/#defineIP_ADDR0(uint8_t)192#defineIP_ADDR1(uint8_t)168#defineIP_ADDR2(uint8_t)0#defineIP_ADDR3(uint8_t)10/* NETMASK definition *********************************************************/#defineNETMASK_ADDR0(uint8_t)255#defineNETMASK_ADDR1(uint8_t)255#defineNETMASK_ADDR2(uint8_t)255#defineNETMASK_ADDR3(uint8_t)0/* Gateway Address definition *************************************************/#defineGW_ADDR0(uint8_t)192#defineGW_ADDR1(uint8_t)168#defineGW_ADDR2(uint8_t)0#defineGW_ADDR3(uint8_t)121 definesExported constants/* Exported macro ------------------------------------------------------------*//* Exported functions ------------------------------------------------------- *//* Exported function prototypes ----------------------------------------------*/#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/* __MAIN_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.