中级会员
 
- 积分
- 341
- 金钱
- 341
- 注册时间
- 2014-10-30
- 在线时间
- 0 小时
|
5金钱
/*******************设置任务优先级*******************/
#define STARTUP_TASK_PRIO 3
#define TASK_ADC_SAMPLE_PRIO 4
#define TASK_LED1_PRIO 6
#define TASK_LED2_PRIO 7
#define TASK_LED3_PRIO 8
#define TASK_GUI_TOUCH_PRIO 12
#define TASK_GUI_PRIO 13
/************设置栈大小(单位为 OS_STK )************/
#define STARTUP_TASK_STK_SIZE 100
#define TASK_ADC_Sample_STK_SIZE 256
#define TASK_LED1_STK_SIZE 80
#define TASK_LED2_STK_SIZE 80
#define TASK_LED3_STK_SIZE 80
#define TASK_GUI_STK_SIZE 500
#define TASK_GUI_Touch_STK_SIZE 80
不知道怎样设置栈大小和任务优先级。uc/os中任务优先级和栈的大小该怎样设置?
|
最佳答案
查看完整内容[请看2#楼]
任务优先级的话根据你的实际设计来选择,堆栈的话都是慢慢试的,先开大一点,如果能运行的下去的话就慢慢改小。
|