RT-USB-9AXIS-00
総合概要
モジュール
データ構造
ファイル
ファイル一覧
大域各種
uart.h
1
/*****************************************************************************
2
* uart.h: Header file for NXP LPC13xx Family Microprocessors
3
*
4
* Copyright(C) 2008, NXP Semiconductor
5
* All rights reserved.
6
*
7
* History
8
* 2008.08.21 ver 1.00 Preliminary version, first Release
9
*
10
******************************************************************************/
11
#ifndef __UART_H
12
#define __UART_H
13
14
15
#define RS485_ENABLED 0
16
#define TX_INTERRUPT 0
/* 0 if TX uses polling, 1 interrupt driven. */
17
#define MODEM_TEST 0
18
19
#define IER_RBR 0x01
20
#define IER_THRE 0x02
21
#define IER_RLS 0x04
22
23
#define IIR_PEND 0x01
24
#define IIR_RLS 0x03
25
#define IIR_RDA 0x02
26
#define IIR_CTI 0x06
27
#define IIR_THRE 0x01
28
29
#define LSR_RDR 0x01
30
#define LSR_OE 0x02
31
#define LSR_PE 0x04
32
#define LSR_FE 0x08
33
#define LSR_BI 0x10
34
#define LSR_THRE 0x20
35
#define LSR_TEMT 0x40
36
#define LSR_RXFE 0x80
37
38
#define BUFSIZE 0x80
39
40
/* RS485 mode definition. */
41
#define RS485_NMMEN (0x1<<0)
42
#define RS485_RXDIS (0x1<<1)
43
#define RS485_AADEN (0x1<<2)
44
#define RS485_SEL (0x1<<3)
45
#define RS485_DCTRL (0x1<<4)
46
#define RS485_OINV (0x1<<5)
47
48
void
UARTInit(uint32_t Baudrate);
49
void
UART_IRQHandler(
void
);
50
void
UARTSend(uint8_t *BufferPtr, uint32_t Length);
51
52
53
#endif
/* end __UART_H */
54
/*****************************************************************************
55
** End Of File
56
******************************************************************************/
RT-USB-9AXIS-sample
inc
PERIPHERAL
uart.h
構築:
1.8.10