📄 uart.h
字号:
/*
*************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -