代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
uart.h
#define TRUE 1
#define FALSE 0
#define rUTRSTAT0 (*(volatile unsigned *)0x50000010)
#define rUTRSTAT1 (*(volatile unsigned *)0x50004010)
#define rUTRSTAT2 (*(volatile unsigned *)0x50008010)
#de
uart.c
//#include "inc/Uart.h"
//#include "inc/macro.h"
//#include "inc/lib.h"
/*void Uart_SendByten(int Uartnum, U8 data)//ok eric rong
{ //int i;
if(Uartnum==0)
{
while(!(rUTRSTAT0 & 0x4)
uart.h
#ifndef __UART_H__
#define __UART_H__
#include "../inc/macro.h"
#include "../ucos-ii/ucos_ii.h"
#define UART_REVBUFFER_SIZE 2048
typedef struct{
U8 Buffer[UART_REVBUFFER_SIZE];
OS_EVEN
uart.c
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
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_EVEN
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_EVEN
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_EVEN
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_EVEN
uart.h
void uart_init(void); /* Initialize UART and Flush FIFOs */
uint8_t uart_get (void); /* Get a byte from UART Rx FIFO */
uint8_t uart_test(void); /* Check number of data in UART Rx FIFO */
void uar