UCOS_TI_LM3S_Keil
 全部 结构体 文件 函数 变量 类型定义 宏定义 
cpu_cfg.h
浏览该文件的文档.
1 /*
2 *********************************************************************************************************
3 * uC/CPU
4 * CPU CONFIGURATION & PORT LAYER
5 *
6 * (c) Copyright 2004-2009; Micrium, Inc.; Weston, FL
7 *
8 * All rights reserved. Protected by international copyright laws.
9 *
10 * uC/CPU is provided in source form for FREE evaluation, for educational
11 * use or peaceful research. If you plan on using uC/CPU 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/CPU. 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 * CPU CONFIGURATION FILE
28 *
29 * TEMPLATE
30 *
31 * Filename : cpu_cfg.h
32 * Version : V1.23
33 * Programmer(s) : SR
34 * ITJ
35 *********************************************************************************************************
36 */
37 
38 
39 /*
40 *********************************************************************************************************
41 * CPU NAME CONFIGURATION
42 *
43 * Note(s) : (1) Configure CPU_CFG_NAME_EN to enable/disable CPU name feature :
44 *
45 * (a) CPU name storage
46 * (b) CPU name API functions
47 *
48 * (2) Configure CPU_CFG_NAME_SIZE with the desired ASCII string size of the CPU name, NOT
49 * including the terminating NULL character.
50 *
51 * See also 'cpu_core.h GLOBAL VARIABLES Note #1'.
52 *********************************************************************************************************
53 */
54 #define DEF_DISABLED 0u
55 #define DEF_ENABLED 1u
56 
57 
58  /* Configure CPU name feature (see Note #1) : */
59 #define CPU_CFG_NAME_EN DEF_DISABLED
60  /* DEF_DISABLED CPU name DISABLED */
61  /* DEF_ENABLED CPU name ENABLED */
62 
63 #define CPU_CFG_NAME_SIZE 16 /* Configure CPU name ASCII string size (see Note #2). */
64 
65 
66 /*$PAGE*/
67 /*
68 *********************************************************************************************************
69 * CPU TIMESTAMP CONFIGURATION
70 *
71 * Note(s) : (1) Configure CPU_CFG_TS_EN to enable/disable CPU timestamp feature.
72 *********************************************************************************************************
73 */
74 
75 
76  /* Configure CPU timestamp feature (see Note #1) : */
77 #define CPU_CFG_TS_EN DEF_ENABLED
78  /* DEF_DISABLED CPU timestamps DISABLED */
79  /* DEF_ENABLED CPU timestamps ENABLED */
80 
81 
82 /*
83 *********************************************************************************************************
84 * CPU INTERRUPTS DISABLED TIME MEASUREMENT CONFIGURATION
85 *
86 * Note(s) : (1) (a) Configure CPU_CFG_INT_DIS_MEAS_EN to enable/disable measuring CPU's interrupts
87 * disabled time :
88 *
89 * (a) Enabled, if CPU_CFG_INT_DIS_MEAS_EN #define'd in 'cpu_cfg.h'
90 *
91 * (b) Disabled, if CPU_CFG_INT_DIS_MEAS_EN NOT #define'd in 'cpu_cfg.h'
92 *
93 * See also 'cpu_core.h FUNCTION PROTOTYPES Note #1'
94 * & 'cpu_core.h CPU INCLUDE FILES Note #3'.
95 *
96 * (b) !!!! Recommended configuration value = 1, even for instruction-cache-enabled CPUs.
97 *********************************************************************************************************
98 */
99 
100 #if 0 /* Configure CPU interrupts disabled time ... */
101 #define CPU_CFG_INT_DIS_MEAS_EN /* ... measurements feature (see Note #1a). */
102 #endif
103 
104  /* Configure number of interrupts disabled overhead ... */
105 #define CPU_CFG_INT_DIS_MEAS_OVRHD_NBR 1 /* ... time measurements (see Note #1b). */
106 
107 
108 /*
109 *********************************************************************************************************
110 * CPU COUNT LEADING ZEROS CONFIGURATION
111 *
112 * Note(s) : (1) Configure CPU_CFG_LEAD_ZEROS_ASM_PRESENT to prototype/define count leading zeros bits
113 * function(s) in :
114 *
115 * (a) 'cpu.h'/'cpu_a.asm', if CPU_CFG_LEAD_ZEROS_ASM_PRESENT #define'd in 'cpu.h'/
116 * 'cpu_cfg.h' to enable assembly-version function(s)
117 *
118 * (b) 'cpu_core.h'/'cpu_core.c', if CPU_CFG_LEAD_ZEROS_ASM_PRESENT NOT #define'd in 'cpu.h'/
119 * 'cpu_cfg.h' to enable C-source-version function(s) otherwise
120 *
121 * See also 'cpu_core.h FUNCTION PROTOTYPES Note #2'
122 * & 'cpu_core.h CPU INCLUDE FILES Note #3'.
123 *********************************************************************************************************
124 */
125 
126 #if 0 /* Configure CPU count leading zeros bits ... */
127 #define CPU_CFG_LEAD_ZEROS_ASM_PRESENT /* ... assembly-version (see Note #1). */
128 #endif
129