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