uart.h
来自「矿工定位系统,包括单片机原理图,PCB,KEILC51原代码,带瓦斯检测功能,成」· C头文件 代码 · 共 56 行
H
56 行
//uart.h - code recommendation for C header file
/***********************************************************************
MODULE: UART
VERSION: 1.04
CONTAINS: Routines for controlling the UART peripheral on the Philips
P89LPC932
COPYRIGHT: Embedded Systems Academy, Inc. - www.esacademy.com
LICENSE: May be freely used in commercial and non-commercial code
without royalties provided this copyright notice remains
in this file and unaltered
WARNING: IF THIS FILE IS REGENERATED BY CODE ARCHITECT ANY CHANGES
MADE WILL BE LOST. WHERE POSSIBLE USE ONLY CODE ARCHITECT
TO CHANGE THE CONTENTS OF THIS FILE
GENERATED: On "Feb 24 2004" at "11:46:47" by Code Architect 2.03
***********************************************************************/
#ifndef _UARTH_
#define _UARTH_
/***********************************************************************
DESC: Transmits a 8-bit value via the UART in the current mode
May result in a transmit interrupt if enabled.
RETURNS: Nothing
CAUTION: user_uart_init must be called first
************************************************************************/
extern void uart_transmit
(
unsigned char value // data to transmit
);
/***********************************************************************
DESC: Gets a received 8-bit value from the UART
RETURNS: Received data
CAUTION: user_uart_init must be called first
************************************************************************/
extern unsigned char uart_get
(
void
);
/***********************************************************************
DESC: Initializes UART for mode 1
Baudrate: 19200
RETURNS: Nothing
CAUTION: If interrupts are being used then EA must be set to 1
after calling this function
************************************************************************/
extern void user_uart_init
(
void
);
#endif // _UARTH_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?