⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server.h

📁 LWIP在STM32裸机上的移植
💻 H
字号:
#ifndef __SERVER_H__
#define __SERVER_H__

#include "lwip/pbuf.h"
#include "lwip/udp.h"
#include "stm32f10x.h"
#include "stm32f107.h"
#include <string.h>
#include <stdio.h>

#define UDP_SERVER_PORT    1208	/* define the UDP local connection port */ //120
#define UDP_CLIENT_PORT    121 	/* define the UDP remote connection port */

/*Initialize the UDP server application.*/
void server_init(void);			//主程序中只需调用此函数

void udp_server_callback(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -