app_cfg.h

来自「支持pic24单片机的uCOSII 使用P24H256GP610」· C头文件 代码 · 共 56 行

H
56
字号
/*
*********************************************************************************************************
*                                       APPLICATION CONFIGURATION
*
*                                 (c) Copyright 2006, Micrium, Weston, FL
*                                          All Rights Reserved
*
*                                           Microchip PIC24FJ
*********************************************************************************************************
*/

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

#define  APP_TASK_START_PRIO          5
#define  OS_TASK_TMR_PRIO            12
#define  LCDDISPLAY_TASK_PRIO		  15


#define  OS_VIEW_TASK_PRIO            7
#define  OS_VIEW_TASK_ID              7
/*
*********************************************************************************************************
*                                            TASK STACK SIZES
*********************************************************************************************************
*/

#define  APP_TASK_START_STK_SIZE    128
#define  LCDDISPLAY_TASK_STK_SIZE   128


#define  OS_VIEW_TASK_STK_SIZE      160

/*
*********************************************************************************************************
*                                           uC/OS-View CONSTANTS
*********************************************************************************************************
*/

#define  OS_VIEW_PARSE_TASK           1                     /* Parsing of received packets will be done by a task   */
#define  OS_VIEW_TMR_32_BITS          0                     /* uC/OS-View timer is 32 bits                          */
#define  OS_VIEW_TMR_SEL              3                     /* Select a B-type timer, either number 3, or 5         */

/*
*********************************************************************************************************
*                                      CONFIGURATION CHECKING
*********************************************************************************************************
*/

#if ((OS_VIEW_TMR_SEL != 3) && (OS_VIEW_TMR_SEL != 5))
#error "OS_VIEW_TMR_SEL is illegally defined in app_cfg.h. Allowed values: 3 or 5"
#endif

⌨️ 快捷键说明

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