代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
/******************************************************************************************
Uart.h (v1.0)
-------------------------------------------------------------------------------------
Th
uart.c
/******************************************************************************************
Uart.c (v1.0)
-------------------------------------------------------------------------------------
Th
uart.h
/******************************************************************************************
Uart.h (v1.0)
-------------------------------------------------------------------------------------
Th
uart.vhd
--
-- uart.vhd
--
-- 8-N-1 serial interface
--
-- wr, rd should be one cycle long => trde, rdrf goes 0 one cycle later
--
-- Author: Martin Schoeberl martin@good-ear.com
--
--
-- resources
uart.c
#include
#include "Def.h"
#include "smdk2410.h"
#include "Uart.h"
//推荐nPClock=50*1024*1024
void UartInit(U32 nPClock)
{
GPHCON=vGPHCON; //0x0016faaa (GPH0-3)用于UART0
GPHUP=vGPH
uart.h
#ifndef _UART_H_
#define _UART_H_
void UartInit(unsigned int nPClock);
void UartPutChar(char chVal);
void UartPrint(const char *pszBuf);
void UartPutInt(unsigned int nVal);
void UartPutPointer
uart.h
/********************************************************************************/
/* UART.H v1.00 */
/* 版权(c) 2003- 北京合众达电子技术有限责任公司 */
/* 设计者: 段立锋 */
/*****
uart.asm
*********************************************************************************
* UART.ASM v1.00 *
* 版权(c) 2003- 北京合众达电子技术有限责任公司 *
* 设计者
uart.c
#include
#include "config.h"
//参数配置
#define MCLK 11059200L //定义CPU主频(Hz)
//#define BAUD_RATE 9600L //设置波特率
void ReceOneChar(char ReceChar);
void UartSendChar(char c);