LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
app_cfg.h
Go to the documentation of this file.
1 /*
2 *********************************************************************************************************
3 * uC/OS-II
4 * The Real-Time Kernel
5 *
6 * (c) Copyright 2004-2009; Micrium, Inc.; Weston, FL
7 *
8 * All rights reserved. Protected by international copyright laws.
9 *
10 * uC/OS-II is provided in source form for FREE evaluation, for educational
11 * use or peaceful research. If you plan on using uC/OS-II in a commercial
12 * product you need to contact Micrium to properly license its use in your
13 * product. We provide ALL the source code for your convenience and to
14 * help you experience uC/OS-II. The fact that the source code is provided
15 * does NOT mean that you can use it without paying a licensing fee.
16 *
17 * Knowledge of the source code may NOT be used to develop a similar product.
18 *
19 * Please help us continue to provide the Embedded community with the finest
20 * software available. Your honesty is greatly appreciated.
21 *********************************************************************************************************
22 */
23 
24 /*
25 *********************************************************************************************************
26 *
27 * APPLICATION CONFIGURATION
28 *
29 * KEIL MCB1700 DEVELOPMENT KIT
30 *
31 * Filename : app_cfg.h
32 * Version : V1.00
33 * Programmer(s) : FT
34 *********************************************************************************************************
35 */
36 
37 #ifndef APP_CFG_MODULE_PRESENT
38 #define APP_CFG_MODULE_PRESENT
39 
40 
41 /*
42 *********************************************************************************************************
43 * ADDITIONAL uC/MODULE ENABLES
44 *********************************************************************************************************
45 */
46 
47 #define APP_CFG_PROBE_COM_EN DEF_DISABLED
48 #define APP_CFG_SERIAL_EN DEF_DISABLED
49 
50 
51 /*
52 *********************************************************************************************************
53 * TASK PRIORITIES
54 *********************************************************************************************************
55 */
56 
57 #define APP_CFG_TASK_START_PRIO 2u
58 
59 
60 /*
61 *********************************************************************************************************
62 * TASK STACK SIZES
63 *********************************************************************************************************
64 */
65 
66 #define APP_CFG_TASK_START_STK_SIZE 256u
67 
68 
69 /*
70 *********************************************************************************************************
71 * TASK STACK SIZES LIMIT
72 *********************************************************************************************************
73 */
74 
75 #define APP_CFG_TASK_START_STK_SIZE_PCT_FULL 90u
76 
77 #define APP_CFG_TASK_START_STK_SIZE_LIMIT (APP_CFG_TASK_START_STK_SIZE * (100u - APP_CFG_TASK_START_STK_SIZE_PCT_FULL)) / 100u
78 
79 
80 /*
81 *********************************************************************************************************
82 * uC/LIB CONFIGURATION
83 *********************************************************************************************************
84 */
85 
86 #include <lib_cfg.h>
87 
88 
89 /*
90 *********************************************************************************************************
91 * uC/SERIAL CONFIGURATION
92 *********************************************************************************************************
93 */
94 
95 #include <serial_cfg.h>
96 
97 
98 /*
99 *********************************************************************************************************
100 * uC/SERIAL APPLICATION CONFIGURATION
101 *********************************************************************************************************
102 */
103 
104 #define APP_SERIAL_CFG_TRACE_EN DEF_DISABLED
105 #define APP_SERIAL_CFG_TRACE_PORT_NAME "UART0"
106 
107 
108 /*
109 *********************************************************************************************************
110 * uC/PROBE APPLICATION CONFIGURATION
111 *********************************************************************************************************
112 */
113 
114 #define APP_CFG_PROBE_SERIAL_PORT_NAME "UART3"
115 
116 
117 /*
118 *********************************************************************************************************
119 * TRACE / DEBUG CONFIGURATION
120 *********************************************************************************************************
121 */
122 
123 #define TRACE_LEVEL_OFF 0
124 #define TRACE_LEVEL_INFO 1
125 #define TRACE_LEVEL_DBG 2
126 
127 #define APP_CFG_TRACE_LEVEL TRACE_LEVEL_OFF
128 #define APP_CFG_TRACE printf
129 
130 #define APP_TRACE_INFO(x) ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_CFG_TRACE x) : (void)0)
131 #define APP_TRACE_DBG(x) ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(APP_CFG_TRACE x) : (void)0)
132 
133 #endif