app_cfg.h

来自「ucos-ii 的完整代码」· C头文件 代码 · 共 89 行

H
89
字号
/*
*********************************************************************************************************
*                                   Application Configuration
*
*                       DO NOT DELETE THIS FILE, IT IS REQUIRED FOR OS_VER > 2.80
*
*                                   CHANGE SETTINGS ACCORDINGLY
*
*
* File : app_cfg.h
* By   : Eric Shufro
*********************************************************************************************************
*/

#ifndef  APP_CFG_H
#define  APP_CFG_H

/*
*********************************************************************************************************
*                                       INCLUDES
*********************************************************************************************************
*/

#include <lib_def.h>

/*
*********************************************************************************************************
*                                       ADDITIONAL uC/MODULE ENABLES
*********************************************************************************************************
*/

#define  LIB_STR_CFG_FP_EN                DEF_DISABLED                  /* DEF_ENABLED = Present, DEF_DISABLED = Not Present        */
#define  uC_CFG_OPTIMIZE_ASM_EN           DEF_DISABLED
#define  uC_PROBE_OS_PLUGIN               DEF_ENABLED                  
#define  uC_PROBE_COM_MODULE              DEF_ENABLED

/*
*********************************************************************************************************
*                                       TASK PRIORITIES
*********************************************************************************************************
*/

#define  APP_TASK_START_PRIO                   0                        /* Lower numbers are of higher priority                     */
#define  ACCELEROMETER_TASK_PRIO               4
#define  OS_PROBE_TASK_PRIO                    8
#define  OS_PROBE_TASK_ID                      8
#define  OS_PROBE_RESERVED                     9                        /* See probe_com_cfg.h, PROBE_RS232_TASK_PRIO               */
#define  OS_TASK_TMR_PRIO                     10   
#define  MyTask1_PRIO                         3
#define  MyTask2_PRIO                         11 
#define  MyTask3_PRIO                         15 
#define  MyTask4_PRIO                         35
#define  MyTask5_PRIO                         40
/*
*********************************************************************************************************
*                                       TASK STACK SIZES
*
* Notes :   1) Warming, setting a stack size too small may result in the OS crashing. It the OS crashes
*              within a deep nested function call, the stack size may be to blame. The current maximum 
*              stack usage for each task may be checked by using uC/OS-View or the stack checking
*              features of uC/OS-II.
*********************************************************************************************************
*/

#define  APP_TASK_START_STK_SIZE              80
#define  OS_PROBE_TASK_STK_SIZE              128
#define  ACCELEROMETER_TASK_STK_SIZE          80
#define  MyTask1_STK_SIZE                     80
#define  MyTask2_STK_SIZE                     80
#define  MyTask3_STK_SIZE                     80
#define  MyTask4_STK_SIZE                     80
#define  MyTask5_STK_SIZE                     80
/*
*********************************************************************************************************
*                               uC/Probe plug-in for uC/OS-II CONFIGURATION
*********************************************************************************************************
*/

#define  OS_PROBE_TASK                         1                        /* Task will be created for uC/Probe OS Plug-In             */
#define  OS_PROBE_TMR_32_BITS                  0                        /* Timer is 16 bits                                         */
#define  OS_PROBE_TIMER_SEL                    0                        /* Share TPM1, channel 0 with uC/OS-II                      */
#define  OS_PROBE_HOOKS_EN                     1                        /* Enable uC/Probe application hooks                        */ 
#define  OS_PROBE_USE_FP                       0                        /* Override uC/Probe floating point support, use integers   */



#endif                                                                  /* End of file                                              */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?