uart.h
来自「Philips的LPC900系列」· C头文件 代码 · 共 55 行
H
55 行
/***********************************************************************
MODULE: UART
VERSION: 1.04
CONTAINS: Routines for controlling the UART peripheral on the Philips
P89LPC935
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 "May 09 2005" at "09:37:55" by Code Architect 2.06
***********************************************************************/
#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: 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: uart_init must be called first
************************************************************************/
extern unsigned char uart_get
(
void
);
/***********************************************************************
DESC: Initializes UART for mode 1
Baudrate: 9599.2167
RETURNS: Nothing
CAUTION: If interrupts are being used then EA must be set to 1
after calling this function
************************************************************************/
extern void uart_init
(
void
);
#endif // _UARTH_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?