代码搜索结果
找到约 10,000 项符合
UART 的代码
uart0.h
#ifndef __UART0_H__
#define __UART0_H__
#define UARTBUFFER _NONCACHE_STARTADDRESS
#define TX_INTTYPE 1 //0:Tx interrupt type is pulse, 1:Tx interrupt type is level
#define RX_INTTYPE 1 //0:Rx i
uart0.c
//====================================================================
// File Name : uart0.c
// Function : S3C2440 UART-0 test code
// Program : Shin, On Pil (SOP)
// Date : May 30, 2002
uart2.c
//====================================================================
// File Name : uart2.c
// Function : S3C2440 UART-2 test code
// Program : Shin, On Pil (SOP)
// Date : May 30, 2002
uart0.h
#ifndef _UART_H_
#define _UART_H_
#include
//#define DEBUG
#ifdef DEBUG
#define PRINT SendBuf
#else
#define PRINT(a)
#endif //debug
//设置缓冲区的大小
//参数:'Len'指要设置的缓冲区的字节数
voi
uart0.c
#include
#include
#include
#include
#define MAXLEN 10
u8 trdata[MAXLEN]; //要接收/发送的字符所存放的缓冲区
u8 txCounts = 0; //已发送的字符个数
uart.dp2
UART.o: C:/icc/include/io8535v.h
uart_recv.c
#include
typedef unsigned char uchar;
typedef unsigned int uint;
void InitSys();
void SetClock();
uint bitTime=64;//每一位数据时间
uint hBitTime=32;//半位数据的时间
uchar recvData[8
uart_send.c
/***********************************************
软件模拟msp430串口,发送端
硬件资源:Timer_A,CCR0,UP Mode
时钟选择:MCLK=4.9MHz, ACLK32768Hz
数据发送端口:p3.7
发送数据帧:开始位(1b)+数据位(8b)+ 停止位(1b)
时间:2006.12.7
作者:BackerShu
*
df_uart.c
/*****************************************************************************\
文件名: df_uart.c
描述:UART异步串行通讯程序。使用USART0。
晶体振荡器 XT2:8MHz LFXT1:32.768kHz
波特率:9600bit/s,8位数据位,1位停止位,奇校验
df_uart.h
#ifndef __DF_UART
#define __DF_UART
void UartInit();
void SendUart(int *pBuffer);
#endif