📄 app_cfg.h
字号:
/*
*********************************************************************************************************
* APPLICATION SPECIFIC RTOS SETUP
*
* (c) Copyright 2005, Micrium, Inc., Weston, FL
* All Rights Reserved
*
* CONFIGURATION FILE
*
* File : app_cfg.h
* By : Eric Shufro
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* APPLICATION CONFIGURATION
*
* Note(s) : (1) Configure the product's/application's desired product configuration values.
*********************************************************************************************************
*/
#define LIB_STR_CFG_FP_EN DEF_ENABLED
#define uC_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
#define OS_CPU_ARM_DCC_EN DEF_ENABLED
#define uC_TCPIP_MODULE DEF_ENABLED
#define BSP_EXT_MEM_INIT 0 /* Initialize the Ext. Memory Controller from BSP_Init() */
/* This is REQUIRED when using a first level boot loader */
/*
*********************************************************************************************************
* APPLICATION CONSTANTS
*********************************************************************************************************
*/
#define TRUE 1
#define FALSE 0
/*
*********************************************************************************************************
* TASKS PRIORITIES
*********************************************************************************************************
*/
#define APP_TASK_START_PRIO 5
#define OS_VIEW_TASK_PRIO 7
#define OS_VIEW_TASK_ID 7
#define OS_TASK_TMR_PRIO 10
#define NET_OS_CFG_TMR_TASK_PRIO 12
#define NET_OS_CFG_IF_RX_TASK_PRIO 14
/*
*********************************************************************************************************
* STACK SIZES
* Size of the task stacks (# of OS_STK entries)
*********************************************************************************************************
*/
#define APP_TASK_START_STK_SIZE 512
#define OS_VIEW_TASK_STK_SIZE 128
#define NET_OS_CFG_TMR_TASK_STK_SIZE 300
#define NET_OS_CFG_IF_RX_TASK_STK_SIZE 256
/*
*********************************************************************************************************
* 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_TIMER_SEL 2 /* Choose an internal timer to use for OSView 0, 1, 2 */
#define DBGU 0 /* Define numbers for each available Comm Port */
#define OS_VIEW_COMM_SEL DBGU /* Select a Comm Port to use with OSView */
/*
*********************************************************************************************************
* TRACE / DEBUG CONFIGURATION*
*********************************************************************************************************
*/
#define TRACE_LEVEL_OFF 0
#define TRACE_LEVEL_INFO 1
#define TRACE_LEVEL_DEBUG 2
#define APP_TRACE_LEVEL TRACE_LEVEL_DEBUG
#define APP_TRACE printf
#define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
#define APP_TRACE_DEBUG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -