⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uart.h

📁 s3c44b0x的串口实现中断方式
💻 H
字号:
/*----------------------------------------------------------------------------------
File: 					uart.h
Author: 				Qiu Peng   [roc98@163.ne]
Note:					header of UART driver
Create Date:			2004.7.25
Last Modified:			2004.7.28
-----------------------------------------------------------------------------------*/

#ifndef __UART_H__
#define __UART_H__

#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>

#include "44b.h"

//Tx and Rx buffer
#define TxBufLen	1000
#define RxBufLen	1000

void Uart_Init_2(int mclk, int baud);
void Uart_InitBuffer(void);
void Uart_select(int UartNo);	
void Uart_TxStart(void);

//called by INT ISRs(in OS_CPU_A.S)
void UartTx(void);
void UartRx(void);

void Uart_PrintChar(char ch);
void Uart_PrintStr(char *pt);
void Uart_printf(char *fmt,...);

//void 	Uart_GetChar(void);
int  Uart_GetStr(char *str);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -