代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
typedef unsigned char INT8U;
#define R_BYTE unsigned char data
#define BYTE unsigned char
#define SYSCLK 22118400 //SYSCLK frequency in Hz
#define BaudRate_1200 1 //1*12
uart.#1
/************************************************************************************
* Copyright (c) 2004,浙江天煌科技实业有限责任公司
* All rights reserved.
*
* 文件名称: Uart.c
* 文件标识: none
* 适用器件:
uart.c
//========================================================
// 文件名称: UART.c
// 功能描述: 通过UART实现串行通讯,将温度数据传到PC机
// 维护记录: 2005-11-22 v1.0
//========================================================
#
uart.lst
Sunplus u'nSP Assembler - Ver. 1.14.3.1
Listing File Has Been Relocated
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command:
uart.asm
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: C:\PROGRA~1\Sunplus\UNSPID~1.0\cc1.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccusaaaa.i -fkeep-inline-functions -quiet -dumpbase UART.c -mglobal-var
uart.h
/*
* $Revision: 1.2 $
*/
void UartInit(int(*getchar_func)(), void(*putchar_func)(int));
void UartRxrdy();
int ReceiveLine(char* line, int timeout);
void SendLine(char* line);
uart.c
/*
* $Revision: 1.4 $
*/
#include
#include "config.h"
#include "uart.h"
#include "timer.h"
#define RD_TIMEOUT 10
static char rbuf[RXBUF_SIZE];
static volatile int rptr =