📄 uart.h
字号:
/**************************************************************************************
*
* Project Name : S3C6410 Validation
*
* Copyright 2006 by Samsung Electronics, Inc.
* All rights reserved.
*
* Project Description :
* This software is only for validating functions of the S3C6410.
* Anybody can use this software without our permission.
*
*--------------------------------------------------------------------------------------
*
* File Name : uart.h
*
* File Description : This file declares prototypes of UART API funcions.
*
* Author : Woojin,Kim
* Dept. : AP Development Team
* Created Date : 2007/01/16
* Version : 0.1
*
* History
* - Creat debug function (InitDebug,Putc,Getc,Getkey)(Haksoo,Kim 2006/11/08)
* - Creat Full function (Woojin,Kim 2007/01/16)
*
**************************************************************************************/
#ifndef __UART_H__
#define __UART_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include "def.h"
#define SENDBREAK (0x99)
void UART_InitDebugCh(u8 ch, u32 uBaudRate);
void UART_Putc(char data);
s8 UART_Getc(void);
s8 UART_GetKey(void);
u8 UART_Config(void);
void UART_TxString(u8 ch, u8 * str);
u8* UART_RxString(u8 ch);
u8 UART_Open(u8 ch);
u8 UART_Close(u8 ch);
//u32 UART_InitializeREG( UART_REGS *pUartRegs, UART_CON *pUartCon);
//void UART_CalcBaudrate( UART_REGS *pUartRegs, UART_CON *pUartCon);
void __irq Isr_Uart0(void);
void __irq Isr_Uart1(void);
void __irq Isr_Uart2(void);
void __irq Isr_Uart3(void);
void Isr_UartSub(u8 ch);
void __irq Isr_Dma(void);
u8 UART_Config2(u8 cCh, u32 uBreakorLoop, u32 uParity, u32 uNumStop,
u32 uWordLength, u32 uOpCLK, u32 uExtIFtype, u32 uBaudrate,
u32 uSelOpmode, u32 uSelFIFO, u32 uSelAFC, u32 uRTSLvL);
#ifdef __cplusplus
}
#endif
#endif //__UART_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -