📄 app_cfg.h
字号:
/*
*************************************************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -