app_cfg.h
来自「μC/OS—ⅡV:2.80 对 ATMega256 单片机的移植程序代码。」· C头文件 代码 · 共 71 行
H
71 行
/*
*************************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
*
* ATmega256 Sample code
* Application Configuration File
*
* File : APP_CFG.H
* By : Jean J. Labrosse
*************************************************************************************************************
*/
/*
**************************************************************************************************************
* CPU CLOCK FREQUENCY
**************************************************************************************************************
*/
#define CPU_CLK_FREQ 8000000
/*
**************************************************************************************************************
* STACK SIZES
**************************************************************************************************************
*/
#define OS_TASK_START_STK_SIZE 256
#define OS_TASK_START_STK_SIZE_HARD 64
#define OS_TASK_IDLE_STK_SIZE 256
#define OS_TASK_IDLE_STK_SIZE_HARD 64
#define OS_VIEW_TASK_STK_SIZE 200
#define OS_VIEW_TASK_STK_SIZE_HARD 64
/*
**************************************************************************************************************
* TASK PRIORITIES
**************************************************************************************************************
*/
#define OS_TASK_START_PRIO 0
#define OS_VIEW_TASK_PRIO 1
#define OS_VIEW_TASK_ID 1
/*
**************************************************************************************************************
* uC/OS-View
**************************************************************************************************************
*/
#define OS_VIEW_PARSE_TASK 1 /* Received packet will be service by ISR (0) or Task (1) */
#define OS_VIEW_TMR_32_BITS 0 /* The AVR uses a 16-bit timer */
#define OS_VIEW_COMM_0 0
#define OS_VIEW_COMM_1 1
#define OS_VIEW_COMM_2 2
#define OS_VIEW_COMM_3 3
#define OS_VIEW_COMM_SEL OS_VIEW_COMM_0 /* Determine which USART we will use for uC/OS-View */
#define OS_VIEW_TMR_1 1
#define OS_VIEW_TMR_3 3
#define OS_VIEW_TMR_4 4
#define OS_VIEW_TMR_5 5
#define OS_VIEW_TMR_SEL OS_VIEW_TMR_1 /* Determine which timer will be used for uC/OS-View */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?