app_cfg.bak

来自「nec平台下的ucos版本」· BAK 代码 · 共 59 行

BAK
59
字号
//---------------------------------------------------------------------
//                           APP_CFG.h                                 
//---------------------------------------------------------------------

/* 
*********************************************************************************************************
*                                         TASK PRIORITIES 
********************************************************************************************************* 
*/
#define APP_TASK_START_PRIO              4
#define OS_TASK_TMR_PRIO                 10
#define APP_TASK_USER_IF_PRIO            6
#define APP_TASK_KBD_PRIO                7

#define CLK_TASK_PRIO                    8          /* This defines the priority of ClkTask() */ 
#define OS_VIEW_TASK_PRIO                9
#define OS_VIEW_TASK_ID                  9
/*
********************************************************************************************************* 
*                                       TASK STACK SIZES 
********************************************************************************************************* 
*/
#define APP_TASK_START_STK_SIZE        10 
#define APP_TASK_USER_IF_STK_SIZE      10 
#define APP_TASK_KBD_STK_SIZE          10 
#define CLK_TASK_STK_SIZE              10         /* Stack size in OS_STK for ClkTask_OS() */ 
#define OS_VIEW_TASK_STK_SIZE          10

/* 
********************************************************************************************************* 
*                                     uC/Clk CONFIGURATION 
********************************************************************************************************* 
*/ 
#define CLK_TS_BASE_YEAR              2005         /* Time stamps start year */

#define CLK_DLY_TICKS        OS_TICKS_PER_SEC      /* # of clock ticks to obtain 1 second */ 
#define CLK_DATE_EN                      1         /* Enable DATE (when 1) */ 
#define CLK_TS_EN                        1         /* Enable TIME-STAMPS (when 1) */ 
#define CLK_USE_DLY                      1         /* Task will use OSTimeDly() instead of pend on sem. */

/* 
********************************************************************************************************* 
* uC/LCD CONFIGURATION 
********************************************************************************************************* 
*/ 
#define DISP_BUS_WIDTH                   4         /* LCD controller is accessed with a 4 bit bus */ 

/* 
********************************************************************************************************* 
* uC/OS-View CONFIGURATION 
********************************************************************************************************* 
*/ 
#define OS_VIEW_PARSE_TASK               1        /* Parsing of received packets will be done by a task */ 
#define OS_VIEW_TMR_32_BITS              1        /* uC/OS-View timer is 32 bits */ 
#define OS_VIEW_UART_0                   0 
#define OS_VIEW_UART_1                   1 
#define OS_VIEW_UART_2                   2 
#define OS_VIEW_COMM_SEL     OS_VIEW_UART_1

⌨️ 快捷键说明

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