资源简介
在修改官方移植lwip的基础上,搭建tcp客户端,来进行数据的收发,硬件基础:stm32f407+lan9303
代码片段和文件信息
/**
******************************************************************************
* @file main.c
* @author MCD Application Team
* @version V1.1.0
* @date 31-July-2013
* @brief Main program body
******************************************************************************
* @attention
*
* © COPYRIGHT 2013 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f4x7_eth.h“
#include “netconf.h“
#include “main.h“
#include “tcp_echoserver.h“
#include “serial_debug.h“
#include
#include “tcp_server.h“
#include “tcp_client.h“
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
#define SYSTEMTICK_PERIOD_MS 10
/*--------------- LCD Messages ---------------*/
#if defined (STM32F40XX)
#define MESSAGE1 “ STM32F40/41x “
#elif defined (STM32F427X)
#define MESSAGE1 “ STM32F427x “
#endif
#define MESSAGE2 “ STM32F-4 Series “
#define MESSAGE3 “ TCP echoserver Demo“
#define MESSAGE4 “ “
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
__IO uint32_t LocalTime = 0; /* this variable is used to create a time reference incremented by 10ms */
uint32_t timingdelay;
/* Private function prototypes -----------------------------------------------*/
void LCD_LED_Init(void);
/* Private functions ---------------------------------------------------------*/
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/*!< At this stage the microcontroller clock setting is already configured to
168 MHz this is done through SystemInit() function which is called from
startup file (startup_stm32f4xx.s) before to branch to application main.
To reconfigure the default setting of SystemInit() function refer to
system_stm32f4xx.c file
*/
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_4);
#ifdef SERIAL_DEBUG
DebugComPort_Init();
#endif
/*Initialize LCD and Leds */
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-08 14:55 tcp_client\EWARM\
文件 61195 2013-07-31 09:48 tcp_client\EWARM\Project.ewd
文件 60464 2013-07-31 09:48 tcp_client\EWARM\Project.ewp
文件 161 2013-07-31 09:48 tcp_client\EWARM\Project.eww
文件 24689 2013-07-31 09:54 tcp_client\EWARM\startup_stm32f40xx.s
文件 25687 2013-07-31 09:54 tcp_client\EWARM\startup_stm32f427x.s
文件 1594 2013-07-31 09:48 tcp_client\EWARM\stm32f4xx_flash.icf
目录 0 2016-11-05 09:58 tcp_client\inc\
文件 8060 2013-07-31 09:54 tcp_client\inc\lwipopts.h
文件 4654 2016-10-08 18:06 tcp_client\inc\main.h
文件 2198 2013-07-31 09:54 tcp_client\inc\netconf.h
文件 1973 2013-07-31 09:54 tcp_client\inc\serial_debug.h
文件 3167 2016-11-01 11:54 tcp_client\inc\stm32f4x7_eth_bsp.h
文件 5223 2013-07-31 09:54 tcp_client\inc\stm32f4x7_eth_conf.h
文件 3732 2013-07-31 09:54 tcp_client\inc\stm32f4xx_conf.h
文件 2182 2013-07-31 09:54 tcp_client\inc\stm32f4xx_it.h
文件 2521 2016-11-05 09:58 tcp_client\inc\tcp_client.h
文件 1723 2013-07-31 09:48 tcp_client\inc\tcp_echoserver.h
文件 2491 2016-11-04 16:12 tcp_client\inc\tcp_server.h
目录 0 2016-10-28 09:27 tcp_client\MDK-ARM\
文件 73971 2016-10-28 09:27 tcp_client\MDK-ARM\Project.uvgui.jinhao
文件 38695 2016-10-08 18:52 tcp_client\MDK-ARM\Project.uvopt
文件 70429 2016-10-08 18:52 tcp_client\MDK-ARM\Project.uvproj
文件 30381 2013-07-31 09:48 tcp_client\MDK-ARM\startup_stm32f427x.s
文件 29894 2013-07-31 09:48 tcp_client\MDK-ARM\startup_stm32f4xx.s
目录 0 2016-11-05 09:59 tcp_client\MDK-ARM\STM324xG_EVAL\
文件 19769 2016-11-04 16:14 tcp_client\MDK-ARM\STM324xG_EVAL\api_lib.crf
文件 793 2016-11-04 16:14 tcp_client\MDK-ARM\STM324xG_EVAL\api_lib.d
文件 23532 2016-11-04 16:14 tcp_client\MDK-ARM\STM324xG_EVAL\api_lib.o
文件 19769 2016-11-04 16:14 tcp_client\MDK-ARM\STM324xG_EVAL\api_msg.crf
文件 793 2016-11-04 16:14 tcp_client\MDK-ARM\STM324xG_EVAL\api_msg.d
............此处省略237个文件信息
相关资源
- ucos_ii移植stm32f4官网代码资料
- STM32/ARM的官方DSP库
- stm32103c8数据手册
- STM32 F103 通过SPI口读取RFID的
- 基于GP22的超声波流量计
- stm32系列sim900a发送短信代码
- STM32F407 双ADC同步采样TIM3触发,DMA中断
- 使用Zigbee通信的STM32上位机控制小车
- STM32F4串口发送
- STM32 UCGUIKEIL工程,已经移植好,修改
- 基于STM32的IOT系统设计及开发
- STM32F3与F4系列Cortex M4内核编程手册.
- 基于STM32的编码器程序
- stm32控制的LCD19264显示程序
- 基于STM32的简易计算器.rar
- stm32f4 discovery uCOSII 2.91 IAR6.3
- STM32L系列直驱段式LCD、待机模式、A
- STM32毕业设计论文-STM32图像采集系统
- STM32F103C8 虚拟示波器 源码全套资料
- STM32单片机实现Modbus协议主机2个源码
- STM32F103C6T6做的USB转RS232模块图纸源码
- stm32-sht10采集,即可使用
- 百度云IoT物联网平台 -ESP8266-MQTT 1路开
- OneNet云IoT物联网平台 ESP8266 MQTT 1路开
- STM32+TIM+ADC
- STM32+ADC+中断+串口通信
- 单线半双工通信.zip
- stm32秒表程序
- BH1750FVI STM32F103 HAL库 硬件IIC例程
- 基于ARM STM32F429的红外遥控贪吃蛇游戏
评论
共有 条评论