| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial_cfg.h
Go to the documentation of this file.
1 /*
2 *********************************************************************************************************
3 * SERIAL (BYTE) COMMUNICATION
4 *
5 * (c) Copyright 2007-2009; Micrium, Inc.; Weston, FL
6 *
7 * All rights reserved. Protected by international copyright laws.
8 * Knowledge of the source code may NOT be used to develop a similar product.
9 * Please help us continue to provide the Embedded community with the finest
10 * software available. Your honesty is greatly appreciated.
11 *********************************************************************************************************
12 */
13
14 /*
15 *********************************************************************************************************
16 *
17 * SERIAL (BYTE) COMMUNICATION
18 *
19 * CONFIGURATION TEMPLATE FILE
20 *
21 * Filename : serial_cfg.h
22 * Version : V2.00
23 * Programmer(s) : FGK
24 *********************************************************************************************************
25 */
26
27
28 /*
29 *********************************************************************************************************
30 * SERIAL
31 *
32 * Note(s) : (1) Configure SERIAL_CFG_MAX_NBR_IF to the number of interfaces (i.e., UARTs) that will be
33 * present.
34 *
35 * (2) Configure SERIAL_CFG_RD_BUF_EN to enable/disable read buffer functionality. The serial
36 * core stores received data in the read buffer until the user requests it, providing a
37 * reliable guarantee against receive overrun.
38 *
39 * (3) Configure SERIAL_CFG_WR_BUF_EN to enable/disable write buffer functionality. The serial
40 * core stores line driver transmit data in the write buffer while the serial interface is
41 * transmitting application data.
42 *
43 * (4) Configure SERIAL_CFG_ARG_CHK_EXT_EN to enable/disable extended argument checking
44 * functionality.
45 *
46 * (5) Configure SERIAL_CFG_TX_DESC_NBR to allow multiple transmit operations (i.e., Serial_Wr,
47 * Serial_WrAsync) to be queued.
48 *********************************************************************************************************
49 */
50
51 #define SERIAL_CFG_MAX_NBR_IF 2 /* See Note #1. */
52
53 #define SERIAL_CFG_RD_BUF_EN DEF_DISABLED /* See Note #2. */
54
55 #define SERIAL_CFG_WR_BUF_EN DEF_DISABLED /* See Note #3. */
56
57 #define SERIAL_CFG_ARG_CHK_EXT_EN DEF_DISABLED /* See Note #4. */
58
59 #define SERIAL_CFG_TX_DESC_NBR 1 /* See Note #5. */