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

📄 winuart.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -