资源简介
TCPIP网络组件Lwip之 TCP Client,本资料是学习LWIP之TCP的好帮手!
代码片段和文件信息
/*
* File : board.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009 RT-Thread Develop Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2009-01-05 Bernard first implementation
*/
#include
#include
#include “board.h“
/**
* @addtogroup STM32
*/
/*@{*/
/*******************************************************************************
* Function Name : NVIC_Configuration
* Description : Configures Vector Table base location.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void NVIC_Configuration(void)
{
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x20000000 */
NVIC_SetVectorTable(NVIC_VectTab_RAM 0x0);
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH 0x0);
#endif
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
}
/**
* This is the timer interrupt service routine.
*
*/
void SysTick_Handler(void)
{
/* enter interrupt */
rt_interrupt_enter();
rt_tick_increase();
/* leave interrupt */
rt_interrupt_leave();
}
/**
* This fucntion returns milliseconds since system passed
*/
rt_uint32_t rt_hw_tick_get_millisecond(void)
{
rt_tick_t tick;
rt_uint32_t value;
#define TICK_MS (1000/RT_TICK_PER_SECOND)
tick = rt_tick_get();
value = tick * TICK_MS + (SysTick->LOAD - SysTick->VAL) * TICK_MS / SysTick->LOAD;
return value;
}
/**
* This fucntion returns microseconds since system passed
*/
rt_uint32_t rt_hw_tick_get_microsecond(void)
{
rt_tick_t tick;
rt_uint32_t value;
#define TICK_US (1000000/RT_TICK_PER_SECOND)
tick = rt_tick_get();
value = tick * TICK_US + (SysTick->LOAD - SysTick->VAL) * TICK_US / SysTick->LOAD;
return value;
}
/*
+-------------------+--------------------+------------------+-------------------+
+ STM32 FSMC pins assignment +
+-------------------+--------------------+------------------+-------------------+
| PD0 <-> FSMC_D2 | PE0 <-> FSMC_NBL0 | PF0 <-> FSMC_A0 | PG0 <-> FSMC_A10 |
| PD1 <-> FSMC_D3 | PE1 <-> FSMC_NBL1 | PF1 <-> FSMC_A1 | PG1 <-> FSMC_A11 |
| PD4 <-> FSMC_NOE | PE3 <-> FSMC_A19 | PF2 <-> FSMC_A2 | PG2 <-> FSMC_A12 |
| PD5 <-> FSMC_NWE | PE4 <-> FSMC_A20 | PF3 <-> FSMC_A3 | PG3 <-> FSMC_A13 |
| PD8 <-> FSMC_D13 | PE7 <-> FSMC_D4 | PF4 <-> FSMC_A4 | PG4 <-> FSMC_A14 |
| PD9 <-> FSMC_D14 | PE8 <-> FSMC_D5 | PF5 <-> FSMC_A5 | PG5 <-> FSMC_A15 |
| PD10 <-> FSMC_D15 | PE9 <-> FSMC_D6 | PF12 <-> FSMC_A6 | PG9 <-> FSMC_NE2 |
| PD11 <-> FSMC_A16 | PE10 <-> FSMC_D7 | PF13 <-> FSMC_A7 |
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8580 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\board.c
文件 1769 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\board.h
文件 20882 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\codec_wm8978_i2c.c
文件 19833 2012-08-04 07:57 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\codec_wm8978_i2c.h
文件 4062 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\ext_sram.c
文件 7401 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\key.c
文件 4591 2012-08-04 07:57 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\platform.c
文件 15119 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\ra8875.c
文件 947 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\ra8875.h
文件 1059 2012-08-04 07:57 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\SConsc
文件 101838 2012-07-27 22:39 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\sdio_sd.c
文件 20098 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\sdio_sd.h
文件 10273 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\serial.c
文件 1773 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\serial.h
文件 10521 2012-07-07 21:26 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\spi_flash_w25qxx.c
文件 893 2012-07-27 22:39 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\spi_flash_w25qxx.h
文件 14168 2012-07-27 22:39 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f20x_40x_spi.c
文件 1368 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f20x_40x_spi.h
文件 3600 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4xx_conf.h
文件 142140 2013-04-10 09:39 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4xx_eth.c
文件 99748 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4xx_eth.h
文件 6340 2012-07-27 22:39 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4xx_it.c
文件 9638 2012-08-04 07:57 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4_rtc.c
文件 118 2012-08-04 07:57 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32f4_rtc.h
文件 10713 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\stm32_i2c.c
文件 13265 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\touch.c
文件 443 2012-07-07 08:36 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\touch.h
文件 10659 2012-08-02 22:52 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\usart.c
文件 650 2012-07-07 21:26 4、TCPIP网络组件Lwip之 TCP Client\source\drivers\usart.h
文件 1357 2013-04-10 09:59 4、TCPIP网络组件Lwip之 TCP Client\source\example\component_lwip_tcpcli\applications\application.c
............此处省略679个文件信息
- 上一篇:cobolv85安装文件
- 下一篇:pci to usb 驱动 via
相关资源
- Qt_Opencv_Camera.rar
- OkHttpClientManager
- VMware-Horizon-View-Client-x86-2.3.3-1745122.e
- secoclient-macosx-3.0.3.21zip.zip
- VMware-viewclient-x86_64-5.4.0-z.zip
- redis-desktop-manager-0.8.8.384
- secoclient-macosx-7.0.2.33.tar.gz
- Bitvise SSH Client 6.44
- VMware-viewclient-5.1.1-799444.rar
- socket.io-client-cpp.zip
- SC-IOTClient虚拟串口工具软件,可网络
- HP-Socket开发TCP Client
- SuperMap iClient for 3D平面场景二三维一体
- secoclient-win-64-1.50.3.13.exe
- VMware-Horizon-Client
- TELELOGIC+DOORS+V8.0[破解完全版server+cli
- Client_for_linux_x64_v1.6.50006.zip
- stm32+ lwip +dm9000 +tcpserver+client
- VMware-viewclient-x86_64-5.4.0
- 安卓socket控制树莓派GPIO(含server及
- IEC61850 MMS客户端工具 V1.0.2
- prosys-opc-ua-client-3.0.0-256.exeOPC UA客户端
- ora10gInstantClient 64 位
- instantclient-basic-win32-10.2.0.4
- Syncro SVN Client v8.1 MacOSX 带注册机
- DrClient(DrcomAndPPOE)
- opc统一架构opc uaserver-client SDK及
- 中兴 TD-LTE 客户端 驱动 ZTE TD-LTE Clie
- informix client sdk.3.50
- 蘑菇街开源的 IM 项目 TeamTalkiOS clien
评论
共有 条评论