📄 example1.h
字号:
#ifndef _EXAMPLE1_H_
#define _EXAMPLE1_H_
typedef unsigned char INT8U; /* 8 bit 无符号整型 */
typedef unsigned int INT16U; /* 16 bit 无符号整型 */
void BufUartStr( unsigned char *buf, unsigned int len );
void example1_init(void);
void example1_app(void);
/* UIP_APPCALL: the name of the application function. This function
must return void and take no arguments (i.e., C type "void
appfunc(void)"). */
#ifndef UIP_APPCALL
#define UIP_APPCALL example1_app
#endif
#ifndef UIP_UDP_APPCALL
#define UIP_UDP_APPCALL udp_appcall
#endif
struct example2_state {
enum {WELCOME_SENT, WELCOME_ACKED} state;
};
/* UIP_APPSTATE_SIZE: The size of the application-specific state
stored in the uip_conn structure. */
#ifndef UIP_APPSTATE_SIZE
#define UIP_APPSTATE_SIZE sizeof(struct example2_state)
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -