app_cfg.h
4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
*********************************************************************************************************
* EXAMPLE CODE
*
* This file is provided as an example on how to use Micrium products.
*
* Please feel free to use any application code labeled as 'EXAMPLE CODE' in
* your application products. Example code may be used as is, in whole or in
* part, or may be used as a reference only. This file can be modified as
* required to meet the end-product requirements.
*
* Please help us continue to provide the Embedded community with the finest
* software available. Your honesty is greatly appreciated.
*
* You can find our product's user manual, API reference, release notes and
* more information at https://doc.micrium.com.
* You can contact us at www.micrium.com.
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* 模块名称 : uCOS-III的应用配置
* 文件名称 : app_cfg.c
* 版 本 : V1.0
* 说 明 : ucos-ii的应用配置
*
* 修改记录 :
* 版本号 日期 作者 说明
* V1.0 2015-08-10 Eric2013 正式发布
*
* Copyright (C), 2015-2016, 安富莱电子 www.armfly.com
*
*********************************************************************************************************
*/
#ifndef APP_CFG_MODULE_PRESENT
#define APP_CFG_MODULE_PRESENT
/*
*********************************************************************************************************
* MODULE ENABLE / DISABLE
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* TASK PRIORITIES
*********************************************************************************************************
*/
#define APP_CFG_TASK_FeedDog_PRIO 2u
#define APP_CFG_TASK_EthernetSer_PRIO 10u
#define APP_CFG_TASK_EthernetCli_PRIO 8u
#define APP_CFG_TASK_MotionControl_PRIO 9u
#define APP_CFG_TASK_CAN_PRIO 4u
#define APP_CFG_TASK_SpeedCtr_PRIO 5u
/*
*********************************************************************************************************
* TASK STACK SIZES
* Size of the task stacks (# of OS_STK entries)
*********************************************************************************************************
*/
#define APP_CFG_TASK_FEEDDOG_STK_SIZE 256u
#define APP_CFG_TASK_ETHERNETSERCOM_STK_SIZE 2048u
#define APP_CFG_TASK_ETHERNETCLICOM_STK_SIZE 2048u
#define APP_CFG_TASK_MotionControl_STK_SIZE 2048u
#define APP_CFG_TASK_USER_CAN_STK_SIZE 2048u
#define APP_CFG_TASK_Speed_STK_SIZE 2048u
/*
*********************************************************************************************************
* TRACE / DEBUG CONFIGURATION
*********************************************************************************************************
*/
#ifndef TRACE_LEVEL_OFF
#define TRACE_LEVEL_OFF 0u
#endif
#ifndef TRACE_LEVEL_INFO
#define TRACE_LEVEL_INFO 1u
#endif
#ifndef TRACE_LEVEL_DBG
#define TRACE_LEVEL_DBG 2u
#endif
#define APP_TRACE_LEVEL TRACE_LEVEL_OFF
#define APP_TRACE printf
#define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
#define APP_TRACE_DBG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(APP_TRACE x) : (void)0)
#endif
/***************************** 安富莱电子 www.armfly.com (END OF FILE) *********************************/