代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.c
#include "fx2.h"
#include "fx2regs.h"
#include "io.h"
#include "serial.h"
#define BAUDRATE 9600 //设置波特率
serial.h
#define ReceiveMaxLength 1024
extern BYTE xdata ReceiveBuf0[ReceiveMaxLength]; //接收缓冲区
extern WORD ReceiveCount0; //接收个数
extern BYTE xdata ReceiveBuf1[ReceiveMaxLength]; //接收
serial.__i
"Serial.c" BROWSE DEBUG OBJECTEXTEND
serial.c
/*****************************************************************************/
/* SERIAL.C: 应用RTX-51 tiny的串行口中断控制器 */
/*****************************************************************
serial.c
#include "tdp.h"
#include
#include
#define TBUF_SIZE 256 /* 这两行不要改动 */
#define RBUF_SIZE 256
static xdata unsigned char tbuf [TBUF_SIZE];
static xdata unsigned char rbu
serial.h
#ifndef _SERIAL_H_
#define _SERIAL_H_
#include
#include
#include
#include
#include
#include
#include
#include
serial.cpp
#include "serial.h"
MySerial::MySerial( )
{
}
MySerial::~MySerial()
{
}
int MySerial::set_opt(int fd,int nSpeed, int nBits, char nEvent, int nStop)
{
struct termios newtio,oldtio;
if ( tcgetatt