winuart.h
来自「在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LE」· C头文件 代码 · 共 44 行
H
44 行
/* winuart.h
Copyright 1997 by InterNiche Technologies.
Copyright 1996 by NetPort Software
7/20/96 - Created for NAT DOS demo. John Bartas @ NetPort Software
8/28/97 - Modefied to support raw uart (no modem) as a comline driver -JB-
*/
#ifndef UART_BUFSIZ
#define UART_BUFSIZ 1024 /* must be power of two */
#endif
#ifndef MAXUNITS /* max. logical SLIP/PPP connections */
#define MAXUNITS 4
#endif
#ifndef MAXCOMMS /* max. PC Com ports, 2 or 4 */
#define MAXCOMMS 2
#endif
#include "comline.h"
struct com_win
{
void * dev; /* file handle for Windows COM IO */
long uart_gets; /* get_uart received char count */
long uart_tmo; /* put_uart timeouts */
long uart_out; /* put_uart chars out */
int uart_open; /* TRUE if uart_init() has been called (and close has not) */
int uart_unit; /* PPP (or SLIP) unit for this comport */
long baudrate; /* baud rate set to uart */
struct com_line * p_line; /* protocol's com_line struct */
};
extern int comport_map[MAXUNITS]; /* map logical units to PC com ports */
extern struct com_win com_ports[MAXCOMMS];
/* system stuff */
extern void exit_hook(void (*)(void));
extern void uart_closehook(void);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?