代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
/*#ifndef __UART_H__
#define __UART_H__
#define UART_REVBUFFER_SIZE 1024
typedef struct{
U8 Buffer[UART_REVBUFFER_SIZE];
OS_EVENT *Uart_Rev_mbox; //Uart0 receive mail
uart.h
#ifndef __UART_H__
#define __UART_H__
#define UART_REVBUFFER_SIZE 1024
typedef struct{
U8 Buffer[UART_REVBUFFER_SIZE];
OS_EVENT *Uart_Rev_mbox; //Uart0 receive mail b
uart.h
/*#ifndef __UART_H__
#define __UART_H__
#define UART_REVBUFFER_SIZE 1024
typedef struct{
U8 Buffer[UART_REVBUFFER_SIZE];
OS_EVENT *Uart_Rev_mbox; //Uart0 receive mail
uart.h
#ifndef __UART_H__
#define __UART_H__
#include "../inc/macro.h"
//#include "../ucos-ii/ucos_ii.h"
#define UART_REVBUFFER_SIZE 1024
/*typedef struct{
U8 Buffer[UART_REVBUFFER_SIZE];
OS_
uart.h
//UART.H代码
#include "REG51.h"
#define BAUD_RATE 2400
#define RELOAD(TIMER,SVALUE) TIMER+=SVALUE+1
sbit tTXD=P3^7;
sbit rRXD=P3^2;
bit tTI;
bit rRI;
data unsigned char rSBUF;
data unsigned
uart.h
u8 * ulcon = NULL;
u16 * ucon = NULL;
u8 * ufcon = NULL;
u8 * umcon = NULL;
u8 * utrstat = NULL;
u8 * uerstat = NULL;
u16 * ufstat = NULL;
u8 * umstat = NULL;
u8 * utxh =
uart.h
/* 字符输出函数 */
void putchar(unsigned char c);
/* 字符输入函数 */
unsigned char getchar(void);
/* 字符串输出函数 */
void puts(char *s);
/* UART初始化 */
void uart_init(void);
uart.lis
.module uart.c
.area text(rom, con, rel)
0000 .dbfile C:\调试程序\mega48\DAC\uart.c
0000 .dbfunc e putchar _putchar
uart._c
/******************************************/
/* 广州天河双龙电子公司 */
/* http://www.sl.com.cn */
/* RS232通信驱动程序 */
/* 作者:ntzwq@wx88.net
uart.c
// 1、使用ICCAVR的终端调试窗口(Terminal),进行通信调试。
// 2、对ICCAVR的终端调试窗口进行设置,设置串口为com1或com2,
// 通信波特率为19200(Tools->Environment Options...)。
// 3、将PC屏幕光标定位于调试窗口中。
#include
#define fosc 8000000