uart.h
来自「在C8051f340下的一个完整的uart项目源码 请」· C头文件 代码 · 共 53 行
H
53 行
/*
*************************************************************************
* C8051F340 uart modular
*
* Ambition Comm Tech Ltd.Cop
* Jason.D.Proakis
*
* File Description : Header file of uart in C8051F340.
* Include some definations used in the process,
* and declear operation function prototype,
* such as initial, output one charater,
* output a string, input one charater, input a string.
* Create Date : 04-04-2008
* Version : V1.00
* Change History :
*
*************************************************************************
*/
#ifndef __UART_H
#define __UART_H
/*
************************************************************************
* DEFINATIONS
************************************************************************
*/
#define SYSCLK 12000000 /* system clock in Hz */
#define BAUDRATE_UART0 115200 /* baud rate of uart0 */
/*
************************************************************************
* FUNCTION PROTOTYPE
************************************************************************
*//*
************************************************************************
* FOR UART0
************************************************************************
*/
void init_uart0(void);
void putc_uart0(char ch) reentrant;
char getc_uart0(void);
void puts_uart0(char * pch);
unsigned char gets_uart0(char * pch);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?