mirror of
https://github.com/STMicroelectronics/STM32CubeF4.git
synced 2025-05-01 22:17:30 +08:00
93 lines
2.1 KiB
C
93 lines
2.1 KiB
C
/**
|
|
******************************************************************************
|
|
* @file main.h
|
|
* @author MCD Application Team
|
|
* @brief main application header file.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
|
* All rights reserved.</center></h2>
|
|
*
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
* the "License"; You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at:
|
|
* opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
#define USE_DHCP
|
|
|
|
#include "stm32f4xx_hal.h"
|
|
#include "stm32469i_eval.h"
|
|
#include "stm32469i_eval_io.h"
|
|
#include "cmsis_os.h"
|
|
|
|
#ifdef USE_LCD
|
|
#include "stm32469i_eval_lcd.h"
|
|
#include "stm32469i_eval_sdram.h"
|
|
#include "lcd_log.h"
|
|
#endif
|
|
|
|
#define GW_ADDRESS "157.168.9.254"
|
|
#define NETMASK_ADDRESS "255.255.254.0"
|
|
|
|
#define SERVER_PORT "4433"
|
|
#define SERVER_NAME "10.157.9.150"
|
|
|
|
#define GET_REQUEST "GET / HTTP/1.0\r\n\r\n"
|
|
|
|
|
|
#ifdef USE_DHCP
|
|
|
|
#define IP_ADDR0 0
|
|
#define IP_ADDR1 0
|
|
#define IP_ADDR2 0
|
|
#define IP_ADDR3 0
|
|
|
|
#define GW_ADDR0 0
|
|
#define GW_ADDR1 0
|
|
#define GW_ADDR2 0
|
|
#define GW_ADDR3 0
|
|
|
|
#define MASK_ADDR0 0
|
|
#define MASK_ADDR1 0
|
|
#define MASK_ADDR2 0
|
|
#define MASK_ADDR3 0
|
|
|
|
#else
|
|
|
|
#define IP_ADDR0 10
|
|
#define IP_ADDR1 157
|
|
#define IP_ADDR2 9
|
|
#define IP_ADDR3 133
|
|
|
|
#define GW_ADDR0 10
|
|
#define GW_ADDR1 157
|
|
#define GW_ADDR2 9
|
|
#define GW_ADDR3 254
|
|
|
|
#define MASK_ADDR0 255
|
|
#define MASK_ADDR1 255
|
|
#define MASK_ADDR2 254
|
|
#define MASK_ADDR3 0
|
|
|
|
#endif /* USE_DHCP */
|
|
#ifdef MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
|
#define MAX_MEM_SIZE 35 * 1024
|
|
#endif
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
|
|
void SSL_Client(void const *argument);
|
|
void Error_Handler(void);
|
|
void Success_Handler(void);
|
|
|
|
|
|
#endif /*__MAIN_H */
|