📄 app_cfg.h
字号:
/*
*********************************************************************************************************
* MC9S12C32 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
/*
*********************************************************************************************************
* ADDITIONAL uC/MODULE ENABLES
*********************************************************************************************************
*/
#define LIB_CFG_CUSTOM_EN DEF_ENABLED
#define LIB_STR_CFG_FP_EN DEF_ENABLED
/*
*********************************************************************************************************
* TASK PRIORITIES!
*********************************************************************************************************
*/
#define TASK_START_PRIO 5
#define TASK_1_PRIO 8
#define TASK_2_PRIO 10
#define OS_VIEW_TASK_PRIO 16
#define OS_VIEW_TASK_ID 16
#define OS_TASK_TMR_PRIO 20 /* Set the prio of the tmr task, near lowest */
/*
*********************************************************************************************************
* TASK STACK SIZES!
*********************************************************************************************************
*/
#define TASK_STK_SIZE 128
#define OS_VIEW_TASK_STK_SIZE 128
/*
*********************************************************************************************************
* uC/OS-View CONSTANTS
*********************************************************************************************************
*/
#define OS_VIEW_TIMER_SEL 7 /* OSView uses the same timer as the OS Ticker (bsp.h) */
#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 tmr is 16 bit */
#define OS_VIEW_SCI_0 0 /* SCI0 Value */
#define OS_VIEW_SCI_1 1 /* SCI1 Value */
#define OS_VIEW_COMM_SEL OS_VIEW_SCI_0 /* Select SCI0 for uC/OS-View to use */
/*
*********************************************************************************************************
* ERROR CHECKING
*********************************************************************************************************
*/
#if (OS_VIEW_TIMER_SEL < 4) || (OS_VIEW_TIMER_SEL > 7)
#error "OS_VIEW_TIMER_SEL is illegally defined in app_cfg.h. Values (4-7) only. Recommended: 7"
#endif
#if (OS_VIEW_TIMER_SEL < 4) || (OS_VIEW_TIMER_SEL > 7)
#error "OS_VIEW_TIMER_SEL is illegally defined in app_cfg.h. Values (4-7, OS_TICK_OC) only. Recommended: OS_TICK_OC"
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -