代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.s
.module UART.C
.area vector(rom, abs)
.org 44
jmp _USART_Recive_Complete_handler
.org 48
jmp _USART_Data_Register_Empty_handler
.org 52
jmp _USART_Transmit_Complete_handler
.area text
uart._c
#include
#include
#pragma interrupt_handler USART_Recive_Complete_handler:12
#pragma interrupt_handler USART_Data_Register_Empty_handler:13
#pragma interrupt_handler USART_Tran
uart.c
#include "Main.h"
void UART_init(unsigned int ch,unsigned int baud)
{
if(ch)
{
UARTLCON1=0x3; // 8-bit no pariy 1 stop-bit
UARTCONT1=0x9; // rx/tx interru
uart.h
#ifndef _UART_H
#define _UART_H
/***********************************************************
* Status Register Bit Definitions *
********************************************
uart.c
//====================================================================
// File Name : rtc.c
// Function : S3C2413 RTC Test Program
// Date : Sep. 27, 2005
// Version : 0.0
// History
//
uart.h
#ifndef __UART_H__
#define __UART_H__
#ifdef __cplusplus
extern "C" {
#endif
#define DISABLE 0
#define INTORPOL 1
#define DMAREQ0 2
#define DMAREQ1 3
void Ch10_UART(void);
void Uart
uart.h
#ifndef _UART_H
#define _UART_H
void UartSetBaud(U32 ch, U32 baud);
char UartGetch(U32 ch);
char UartGetkey(U32 ch);
void UartPutch(U32 ch, U32 data);
void UartPuts(U32 ch, char *pt);
void Ua