代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/*--------------------------------------------------------------------------
* Copyright (c) 2001 by National Semiconductor Corporation
* All rights reserved.
*
uart.c
/************************************************************************************
* Copyright (c) 2004,西安铭朗电子科技有限责任公司
* All rights reserved.
*
* 文件名称: uart.c
* 文件标识: none
* 适用器件:
uart.h
/************************************************************************************
* Copyright (c) 2004,西安铭朗电子科技有限责任公司
* All rights reserved.
*
* 文件名称: uart.h
* 文件标识: none
* 适用器件:
uart.lst
C51 COMPILER V7.50 UART 04/25/2007 16:01:14 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN .\
uart.h
char Uart_IntGetkey(void);
void Error(void);
void Error(void) __attribute__ ((interrupt ("IRQ")));
void Exint2(void) __attribute__ ((interrupt ("IRQ")));
void Test_B
uart.c
/*********************************************************************************************
* File: main.c
* Author: embest
* Desc: c main entry
* History:
***********************************
uart.h
#ifndef _UART_H_
#define _UART_H_
#include "typedef.h"
void uartInit(void);
void uartSendByte(BYTE byte);
BYTE uartReceiveByte(void);
BYTE uartCntReceive(void);
BYTE uartCntSend(void)
uart.c
#include "uart.h"
#include
/*
#define UARTBUFSIZE 4
typedef struct tUARTBUF
{
BYTE bBuffer[UARTBUFSIZE];
BYTE bWritePtr;
BYTE bReadPtr;
BYTE bCntData;
}
UARTBUF;