LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lib_cfg.h
Go to the documentation of this file.
1 /*
2 *********************************************************************************************************
3 * uC/LIB
4 * CUSTOM LIBRARY MODULES
5 *
6 * (c) Copyright 2004-2009; Micrium, Inc.; Weston, FL
7 *
8 * All rights reserved. Protected by international copyright laws.
9 *
10 * uC/LIB is provided in source form to registered licensees ONLY. It is
11 * illegal to distribute this source code to any third party unless you receive
12 * written permission by an authorized Micrium representative. Knowledge of
13 * the source code may NOT be used to develop a similar product.
14 *
15 * Please help us continue to provide the Embedded community with the finest
16 * software available. Your honesty is greatly appreciated.
17 *
18 * You can contact us at www.micrium.com.
19 *********************************************************************************************************
20 */
21 
22 /*
23 *********************************************************************************************************
24 *
25 * CUSTOM LIBRARY CONFIGURATION FILE
26 *
27 * TEMPLATE
28 *
29 * Filename : lib_cfg.h
30 * Version : V1.31
31 * Programmer(s) : ITJ
32 *********************************************************************************************************
33 */
34 
35 
36 /*
37 *********************************************************************************************************
38 * MODULE
39 *********************************************************************************************************
40 */
41 
42 #ifndef LIB_CFG_MODULE_PRESENT
43 #define LIB_CFG_MODULE_PRESENT
44 
45 
46 /*$PAGE*/
47 /*
48 *********************************************************************************************************
49 *********************************************************************************************************
50 * MEMORY LIBRARY CONFIGURATION
51 *********************************************************************************************************
52 *********************************************************************************************************
53 */
54 
55 /*
56 *********************************************************************************************************
57 * MEMORY LIBRARY ARGUMENT CHECK CONFIGURATION
58 *
59 * Note(s) : (1) Configure LIB_MEM_CFG_ARG_CHK_EXT_EN to enable/disable the memory library suite external
60 * argument check feature :
61 *
62 * (a) When ENABLED, arguments received from any port interface provided by the developer
63 * or application are checked/validated.
64 *
65 * (b) When DISABLED, NO arguments received from any port interface provided by the developer
66 * or application are checked/validated.
67 *********************************************************************************************************
68 */
69 
70  /* Configure external argument check feature (see Note #1) : */
71 #define LIB_MEM_CFG_ARG_CHK_EXT_EN DEF_DISABLED
72  /* DEF_DISABLED Argument check DISABLED */
73  /* DEF_ENABLED Argument check ENABLED */
74 
75 
76 /*
77 *********************************************************************************************************
78 * MEMORY LIBRARY ASSEMBLY OPTIMIZATION CONFIGURATION
79 *
80 * Note(s) : (1) Configure LIB_MEM_CFG_OPTIMIZE_ASM_EN to enable/disable assembly-optimized memory function(s).
81 *********************************************************************************************************
82 */
83 
84  /* Configure assembly-optimized function(s) [see Note #1] : */
85 #define LIB_MEM_CFG_OPTIMIZE_ASM_EN DEF_DISABLED
86  /* DEF_DISABLED Assembly-optimized function(s) DISABLED */
87  /* DEF_ENABLED Assembly-optimized function(s) ENABLED */
88 
89 
90 /*
91 *********************************************************************************************************
92 * MEMORY ALLOCATION CONFIGURATION
93 *
94 * Note(s) : (1) Configure LIB_MEM_CFG_ALLOC_EN to enable/disable memory allocation functions.
95 *
96 * (2) (a) Configure LIB_MEM_CFG_HEAP_SIZE with the desired size of heap memory (in octets).
97 *
98 * (b) Configure LIB_MEM_CFG_HEAP_BASE_ADDR to specify a base address for heap memory :
99 *
100 * (a) Heap initialized to specified application memory, if LIB_MEM_CFG_HEAP_BASE_ADDR
101 * #define'd in 'app_cfg.h'
102 *
103 * (b) Heap declared in 'lib_mem.c', if LIB_MEM_CFG_HEAP_BASE_ADDR
104 * NOT #define'd in 'app_cfg.h'
105 *********************************************************************************************************
106 */
107 
108  /* Configure memory allocation feature (see Note #1) : */
109 #define LIB_MEM_CFG_ALLOC_EN DEF_DISABLED
110  /* DEF_DISABLED Memory allocation DISABLED */
111  /* DEF_ENABLED Memory allocation ENABLED */
112 
113 
114 #define LIB_MEM_CFG_HEAP_SIZE 8u * 1024 /* Configure heap memory size [see Note #2a]. */
115 
116 #if 1 /* Configure heap memory base address (see Note #2b). */
117 #define LIB_MEM_CFG_HEAP_BASE_ADDR 0x20082000u
118 #endif
119 
120 
121 /*$PAGE*/
122 /*
123 *********************************************************************************************************
124 *********************************************************************************************************
125 * STRING LIBRARY CONFIGURATION
126 *********************************************************************************************************
127 *********************************************************************************************************
128 */
129 
130 /*
131 *********************************************************************************************************
132 * STRING FLOATING POINT CONFIGURATION
133 *
134 * Note(s) : (1) Configure LIB_STR_CFG_FP_EN to enable/disable floating point string function(s).
135 *********************************************************************************************************
136 */
137 
138  /* Configure floating point feature(s) [see Note #1] : */
139 #define LIB_STR_CFG_FP_EN DEF_DISABLED
140  /* DEF_DISABLED Floating point functions DISABLED */
141  /* DEF_ENABLED Floating point functions ENABLED */
142 
143 
144 /*$PAGE*/
145 /*
146 *********************************************************************************************************
147 * MODULE END
148 *********************************************************************************************************
149 */
150 
151 #endif /* End of lib cfg module include. */
152