代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.h
int open_port(int fd,int comport);
int set_opt(int fd,int nSpeed, int nBits, char nEvent, int nStop);
serial.c
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
serial.h
#ifndef SERIAL_H
#define SERIAL_H
void serial_init();
void serial_putc( char c);
int serial_getc(char* ch);
void serial_print(char * string);
int serial_get(char * buf, int len);
#endif
serial.c
#include "system.h"
#include "types.h"
#include "serial.h"
//init the first series port
void serial_init()
{
UINT32 intm;
UINT32 status;
//set bandrate under 38400
HAL_WRI
serial.h
#ifndef _SERIAL_H
#define _SERIAL_H
#include"mobileph.h"
#define REC_JUDGE_ERROR ((UART_BUFF[ret++] == 'E') && (UART_BUFF[ret++] == 'R') && (UART_BUFF[ret++] == 'R'))
#de
serial.lst
C51 COMPILER V6.23a SERIAL 11/24/2002 12:03:54 PAGE 1
C51 COMPILER V6.23a, COMPILATION OF MODULE SERIAL
OBJECT MODULE PLACED IN
serial.lst
C51 COMPILER V6.23a SERIAL 11/24/2002 12:03:54 PAGE 1
C51 COMPILER V6.23a, COMPILATION OF MODULE SERIAL
OBJECT MODULE PLACED IN
serial.c
//本函数集来自51单片机世界,作者斑竹丁丁(聂小猛)。
//主页地址http://www.mcu51.com
//串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理
//出入均设有缓冲区,大小可任意设置。
//可供使用的函数名:
/*
extern char getbyte(void);//从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。
e ...