?? target.h
字號:
#ifndef TARGET_H_#define TARGET_H_#include "lwip.h"#include "lwip/stats.h"#include "lwip/mem.h"#include "lwip/tcpip.h"#include "lwip/netif.h"#include "netif/ppp/buffer.h"#include "sio.h"#ifndef FALSE#define FALSE 0#endif#ifndef TRUE#define TRUE 1#endif#ifndef MIN#define MIN(x,y) (x) < (y)? (x): (y)#endif#define TIMEOUT(f, a, t) sys_untimeout((f), (a)), sys_timeout((t)*1000, (f), (a))#define UNTIMEOUT(f, a) sys_untimeout((f), (a))#ifdef _C166#define NO_CHAR_BITFIELDS#endif/* Type definitions for BSD code. */typedef unsigned long u_long;typedef unsigned int u_int;typedef unsigned short u_short;typedef unsigned char u_char;/* * Sleep ms milliseconds. Note that this only has a (close to) 1 Jiffy * resolution. * Note: Since there may me less than a ms left before the next clock * tick, 1 tick is added to ensure we delay at least ms time. */void ppp_msleep(unsigned long ms);/* * Return the number of jiffies that have passed since power up. */#define ppp_jiffies() RetrieveClock()/* Display a panic message and HALT the system. */void ppp_panic(char *msg);/* * Make a string representation of a network IP address. * WARNING: NOT RE-ENTRANT! */char *ip_ntoa(u32_t ipaddr);void ppp_hex_dump(const u_char *bp, u_int length);typedef long ppp_sio_fd_t;#define ppp_sio_write(fd, p, s) write(fd, p, s)#define ppp_sio_read(fd, p, s) read(fd, p, s)#define ppp_sio_read_abort(fd) do { \ ioctl (fd, SIO_BLOCKING_SET, SIO_BLOCKING_OFF); \ ioctl (fd, SIO_BLOCKING_SET, SIO_BLOCKING_RELEASE); \} while (0)#endif /* TARGET_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -