代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
uart.c
#include
typedef unsigned char BYTE;
typedef unsigned short WORD;
static char ascii[] = "0123456789ABCDEF";
void UART_Init(void)
{
P1M1 &= 0xFC; /* TXD (P1.0) ->
uart.lst
C51 COMPILER V7.06 UART 07/16/2003 17:29:57 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN .\
uart.v
// *********************************************
//
// UART.v
//
// www.cmosexod.com
// 4/13/2001 (c) 2001
// Jeung Joon Lee
//
// Universal Asyhnchronous Receiver, Transmitter
// This is
uart.h
#ifndef __UART_H__
#define __UART_H__
#define UART0_REVBUFFER_SIZE 1024
#define UART1_REVBUFFER_SIZE 1024
void OSInitUart(void);
int OSReadUart0(U8 data[], int num, int ntimeout);
void Ope
uart.h
#ifndef __UART_H__
#define __UART_H__
#define UART0_REVBUFFER_SIZE 1024
#define UART1_REVBUFFER_SIZE 1024
void OSInitUart(void);
int OSReadUart0(U8 data[], int num, int ntimeout);
void Ope
uart.h
void UART0_init(uint32 baud);
void UART0_SendByte(uint8 data);
void UART0_SendStr(const uint8 *buf,uint8 Lenth);
uart.c
#include "./src/config.h"
volatile uint8 rcv_new;
extern uint8 rcv_buf[8];
extern uint8 kk_buf[8];
//UART0中断服务程序
void __irq IRQ_UART0(void)
{
uint8 i;
if(0x04 == (U0IIR&0x0F))
rc