📄 app_cfg.h
字号:
/*
*********************************************************************************************************
* EXAMPLE CODE
*
* (c) Copyright 2003-2006; Micrium, Inc.; Weston, FL
*
* All rights reserved. Protected by international copyright laws.
* Knowledge of the source code may NOT be used to develop a similar product.
* Please help us continue to provide the Embedded community with the finest
* software available. Your honesty is greatly appreciated.
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* APPLICATION CONFIGURATION
*
* NXP LPC2468
* on the
* Embedded Artists LPC2468 OEM Board
*
* Filename : app_cfg.h
* Version : V1.00
* Programmer(s) : BAN
*********************************************************************************************************
*/
#ifndef __APP_CFG_H__
#define __APP_CFG_H__
#define IRD_SOFTWARE "04/27 IRD-SOURCEv1.0"
/*
*********************************************************************************************************
* ADDITIONAL IRD Application ENABLES
*********************************************************************************************************
*/
#define DALI_APP_MODULE DEF_ENABLED
/*
*********************************************************************************************************
* ADDITIONAL uC/MODULE ENABLES
*********************************************************************************************************
*/
#define uC_CFG_OPTIMIZE_ASM_EN DEF_ENABLED /* DEF_ENABLED = Present, DEF_DISABLED = Not Present. */
#define uC_TCPIP_MODULE DEF_ENABLED
#define uC_PROBE_OS_PLUGIN DEF_ENABLED
#define uC_PROBE_COM_MODULE DEF_ENABLED
#define uC_LCD_MODULE DEF_ENABLED
/*
*********************************************************************************************************
* TASK NAMES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* TASK PRIORITIES
*********************************************************************************************************
*/
#define APP_TASK_START_PRIO 1
#define APP_TASK_KBD_PRIO 2
#define APP_TASK_DALI_PRIO (OS_LOWEST_PRIO - 5) // ca.
#define APP_TASK_IRD1s_PRIO (OS_LOWEST_PRIO - 4)
/*Insert the AppHeartbeat Task Priority*/
#define OS_PROBE_TASK_PRIO 3
#define OS_PROBE_TASK_ID 3
#define NET_OS_CFG_IF_RX_TASK_PRIO 7
#define NET_OS_CFG_TMR_TASK_PRIO 8
#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
/*
*********************************************************************************************************
* TASK STACK SIZES
*********************************************************************************************************
*/
#define APP_TASK_START_STK_SIZE 256
#define APP_TASK_KBD_STK_SIZE 256
#define APP_TASK_IRD1s_STK_SIZE 256
/*Insert the AppHeartbeat Stack Size*/
#define OS_PROBE_TASK_STK_SIZE 128
#define NET_OS_CFG_TMR_TASK_STK_SIZE 512
#define NET_OS_CFG_IF_RX_TASK_STK_SIZE 1024
#define APP_TASK_DALI_STK_SIZE 128 //ca.
/*********************************************************************************************************
* RS-232 CONSTANTS
*********************************************************************************************************
*/
#define SER_UART_0 0 /* UART0 selected. */
#define SER_UART_1 1 /* UART1 selected. */
#define SER_COMM_SEL SER_UART_0 /* Select UART0 for printing. */
/*
*********************************************************************************************************
* uC/Probe plug-in for uC/OS-II CONFIGURATION
*********************************************************************************************************
*/
#define OS_PROBE_TASK 1 /* Task will be created for uC/Probe OS Plug-In. */
#define OS_PROBE_TMR_32_BITS 1 /* uC/Probe OS Plug-In timer is a 32-bit timer. */
#define OS_PROBE_HOOKS_EN 1 /* Hooks to update OS_TCB profiling members included. */
/*
*********************************************************************************************************
* uC/OS-II DCC CONFIGURATION
*********************************************************************************************************
*/
#define OS_CPU_ARM_DCC_EN 0
#define OS_CPU_EXCEPT_STK_SIZE 256
/*
*********************************************************************************************************
* OPTIMIZATION CONFIGURATION
*********************************************************************************************************
*/
#define uC_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
#define LIB_STR_CFG_FP_EN DEF_ENABLED
/*
*********************************************************************************************************
* 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 SHELL_TRACE_LEVEL TRACE_LEVEL_OFF
#define SHELL_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)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -