GD32TCPdemo

所属分类:单片机开发
开发工具:C/C++
文件大小:16108KB
下载次数:4
上传日期:2020-09-27 16:05:04
上 传 者暖阳666
说明:  GD32的tcp服务器和客户端通信,实现数据传输
(GD32 TCP server and client communication to achieve data transmission)

文件列表:
GD32TCPdemo\EventRecorderStub.scvd (339, 2020-03-05)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\gd32f30x_it.c (3809, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\gd32f30x_it.h (2675, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\gd32f30x_libopt.h (2618, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\main.c (8243, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\main.h (1962, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\systick.c (2780, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_ADC1_regular_parallel\systick.h (2121, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\gd32f30x_it.c (3809, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\gd32f30x_it.h (2675, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\gd32f30x_libopt.h (2618, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\main.c (4880, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\main.h (1962, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\systick.c (2780, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_temperature_Vref\systick.h (2121, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\gd32f30x_it.c (4462, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\gd32f30x_it.h (2752, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\gd32f30x_libopt.h (2618, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\main.c (7143, 2019-01-16)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\main.h (1962, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\systick.c (2780, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC0_timer_trigger_injected_channel\systick.h (2121, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\gd32f30x_it.c (4198, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\gd32f30x_it.h (2752, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\gd32f30x_libopt.h (2618, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\main.c (6123, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\main.h (1962, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\systick.c (2780, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_analog_watchdog\systick.h (2121, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\gd32f30x_it.c (3809, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\gd32f30x_it.h (2675, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\gd32f30x_libopt.h (2618, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\main.c (5169, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\main.h (1962, 2019-01-04)
GD32TCPdemo\GD32F30x_Firmware_Library_V2.0.1\Examples\ADC\ADC1_oversample_shift\systick.c (2780, 2019-01-04)
... ...

/*! \file readme.txt \brief description of the enet demo */ /* Copyright (C) 2017 GigaDevice 2017-07-28, V1.0.0, demo for GD32F30x */ This demo is based on the GD32307C-EVAL-V1.0 board, it shows how to configure the enet peripherals to send and receive frames in normal mode and use lwip tcp/ip stack to realize webserver application. JP4, JP13, JP18, JP19 must be fitted. JP5 jump to Usart. It is configured in RMII mode, and 25MHz oscillator is used, the system clock is configured to 120MHz. Users should configure ip address, mask and gw of GD32307C-EVAL-V1.0 board according to the actual net situation from the private defines in main.h. This demo realize webserver application: Users can visit the eval board through Internet Explorer, the eval board acts as a webserver, and the url is the local ip address of the eval board. There are two experiments realized, one is the LEDs control, the other one is the ADC monitoring Vref voltage in real-time. If users need dhcp function, it can be configured from the private defines in main.h. This function is closed by default. Users can use a router to connect the eval board, and use the HyperTerminal to print the automatic allocated ip address, then connect your mobile phone to the wifi which is the router send. Users can visit the eval board and control it on your mobile phone. By default, the packet reception is polled in while(1). If users want to receive packet in interrupt service, uncomment the macro define USE_ENET_INTERRUPT in main.h.

近期下载者

相关文件


收藏者