代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/*---------------------------------------------------------------------------------
Project : Test for 2410
Author : Kreal@163.net
Creation Date : 04-04-15
Revision
uart.h
//uart header file
#ifdef UART_G
#define uart_ext
#else
#define uart_ext extern
#endif
#define printf UartPrintf
#define Uart_Printf UartPrintf
#define Uart_SendByte UartSen
uart.c
/*---------------------------------------------------------------------------------
Project : Test for 2410
Author : Kreal@163.net
Creation Date : 04-04-15
Revision
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.c
#include "..\startup\def.h"
#include "..\startup\44b.h"
#include "..\ucos-ii\includes.h"
#include "isr.h"
#include "uart.h"
OS_EVENT *Uart0_Rev_mbox=NULL; //Uart0 receive ma
uart.lst
1 .file "Uart.c"
2 .arch atmega8
3 __SREG__ = 0x3f
4 __SP_H__ = 0x3e
5 __SP_L__ = 0x3d
6
uart.c
#include
#include "Uart.h"
/*
1.USART数据寄存器-UDR
7 6 5 4 3 2 1 0 ??
2.USART控制和状态寄存器A - UCSRA
7 RXC USART接收完成
6 TXC USART发送完成
5 UDRE USART数据寄存器空
4 FE 接收帧出错
3 DOR 接收数据溢出