UCOS_TI_LM3S_Keil
 全部 结构体 文件 函数 变量 类型定义 宏定义 
app_cfg.h
浏览该文件的文档.
1 /*
2 *********************************************************************************************************
3 * EXAMPLE CODE
4 *
5 * (c) Copyright 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 write a similar
9 * product. This file may only be used in accordance with a license
10 * and should not be redistributed in any way.
11 *********************************************************************************************************
12 */
13 
14 /*
15 *********************************************************************************************************
16 *
17 * APPLICATION CONFIGURATION
18 *
19 * LUMINARY MICRO LM3S1968 on the EK-LM3S1968
20 *
21 * Filename : app_cfg.h
22 * Version : V1.02
23 * Programmer(s) : BAN
24 *********************************************************************************************************
25 */
26 
27 #ifndef APP_CFG_PRESENT
28 #define APP_CFG_PRESENT
29 
30 /*
31 *********************************************************************************************************
32 * INCLUDE FILES
33 *********************************************************************************************************
34 */
35 
36 #include <cpu.h>
37 #include <lib_def.h>
38 
39 /*
40 *********************************************************************************************************
41 * MODULE ENABLE / DISABLE
42 *********************************************************************************************************
43 */
44 
45 
46 /*
47 *********************************************************************************************************
48 * TASK NAMES
49 *********************************************************************************************************
50 */
51 
52 
53 /*
54 *********************************************************************************************************
55 * TASK PRIORITIES
56 *********************************************************************************************************
57 */
58 
59 #define APP_TASK_START_PRIO 3
60 #define APP_TASK_USER_IF_PRIO 4
61 #define APP_TASK_KBD_PRIO 5
62 //comment by jim 2013_06_13
63 //the os task configure, i think it should be in os_cfg, i move it to os _cfg.
64 //#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
65 
66 /*
67 *********************************************************************************************************
68 * TASK STACK SIZES
69 *********************************************************************************************************
70 */
71 
72 #define APP_TASK_START_STK_SIZE 256
73 #define APP_TASK_USER_IF_STK_SIZE 256
74 #define APP_TASK_KBD_STK_SIZE 256
75 
76 /*
77 *********************************************************************************************************
78 * LIB
79 *********************************************************************************************************
80 */
81 
82 #define LIB_STR_CFG_FP_EN DEF_DISABLED
83 
84 #define LIB_MEM_CFG_ARG_CHK_EXT_EN DEF_ENABLED
85 #define LIB_MEM_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
86 #define LIB_MEM_CFG_ALLOC_EN DEF_ENABLED
87 #define LIB_MEM_CFG_HEAP_SIZE 800u
88 
89 /*
90 *********************************************************************************************************
91 * TRACING
92 *********************************************************************************************************
93 */
94 
95 extern int BSP_Print(const char *fmt, ...);
96 #define TRACE_LEVEL_OFF 0
97 #define TRACE_LEVEL_INFO 1
98 #define TRACE_LEVEL_DBG 2
99 
100 #define APP_TRACE_LEVEL TRACE_LEVEL_OFF
101 #define APP_TRACE BSP_Print
102 
103 #define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
104 #define APP_TRACE_DBG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(APP_TRACE x) : (void)0)
105 
106 
107 /*
108 *********************************************************************************************************
109 * MODULE END
110 *********************************************************************************************************
111 */
112 
113 #endif