代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
#include "../inc/macro.h"
//void Uart_SendByten(int,U8);
void Uart_SendByten(int Uartnum, U8 data);
char Uart_Getchn(char* Revdata, int Uartnum, int timeout);
uart.c
#define TRUE 1
#define FALSE 0
#define rUTRSTAT0 (*(volatile unsigned *)0x50000010)
#define rUTRSTAT1 (*(volatile unsigned *)0x50004010)
#define WrUTXH0(ch) (*(volatile unsigned char *)0x5000002
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
/********************************************************************
Header for UART module library functions
********************************************************************/
uart.c
/*
* BK Id: SCCS/s.uart.c 1.23 12/29/01 14:50:03 trini
*/
/*
* UART driver for MPC860 CPM SCC or SMC
* Copyright (c) 1997 Dan Malek (dmalek@jlc.net)
*
* I used the serial.c driver as the frame
uart.c
/*
* BK Id: SCCS/s.uart.c 1.13 12/29/01 14:50:03 trini
*/
/*
* UART driver for MPC8260 CPM SCC or SMC
* Copyright (c) 1999 Dan Malek (dmalek@jlc.net)
* Copyright (c) 2000 MontaVista Software,
serial_uart
The SA1100 serial port had its major/minor numbers officially assigned:
> Date: Sun, 24 Sep 2000 21:40:27 -0700
> From: H. Peter Anvin
> To: Nicolas Pitre
> Cc: Dev
uart.c
/******************************************************************************
* *
* **********
uart.c
/*
* file:
* uart.c
* description:
* uart controller code.
*/
void uart_ctrl_init(unsigned long pclk, int baudrate)
{
int i;
/* enable dbgu rx/tx */
*AT91C_PIOA_P
uart.c
/*
* file:
* uart.c
* description:
* uart controller code.
*/
void uart_ctrl_init(unsigned long pclk, int baudrate)
{
int i;
/* enable uart rx0/tx0 */
rPCONE &= ~