20230731_XiaMenShiCheng_emb/ZTMS_XiaMenShiCheng/Src/Usr/App/app_cfg.h
Rjh913828050 6d61003da7 类型:重构
内容:厦门实诚项目下位机软件最新程序
人员:任家豪
2023-10-08 14:16:02 +08:00

119 lines
5.0 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
*********************************************************************************************************
* EXAMPLE CODE
*
* This file is provided as an example on how to use Micrium products.
*
* Please feel free to use any application code labeled as 'EXAMPLE CODE' in
* your application products. Example code may be used as is, in whole or in
* part, or may be used as a reference only. This file can be modified as
* required to meet the end-product requirements.
*
* Please help us continue to provide the Embedded community with the finest
* software available. Your honesty is greatly appreciated.
*
* You can find our product's user manual, API reference, release notes and
* more information at https://doc.micrium.com.
* You can contact us at www.micrium.com.
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* APPLICATION CONFIGURATION
*
* Texas Instruments TM4C129x
* on the
*
* DK-TM4C129X
* Development Kit
*
* Filename : app_cfg.h
* Version : V1.00
* Programmer(s) : FT
*********************************************************************************************************
*/
#ifndef APP_CFG_MODULE_PRESENT
#define APP_CFG_MODULE_PRESENT
/*
*********************************************************************************************************
* MODULE ENABLE / DISABLE
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* TASK PRIORITIES
*********************************************************************************************************
*/
#define APP_CFG_TASK_START_PRIO 2u
#define APP_CFG_TASK_USR_WATCHDOG_PRIO 3u
#define APP_CFG_TASK_USR_TIMER_PRIO 4u
#define APP_CFG_TASK_USR_RTC_PRIO 5u
/* <20>ڲ<EFBFBD>ʹ<EFBFBD><CAB9>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>źŴ<C5BA><C5B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD>Ϊ7u<37><75><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD> */
#define APP_CFG_TASK_USR_NETWORK_PRIO 8u
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD> */
#define APP_CFG_TASK_USR_HEART_PRIO 9u
#define APP_CFG_TASK_USR_CAMERA_PRIO 10u
#define APP_CFG_TASK_USR_INSIDE_SENSOR_PRIO 11u
#define APP_CFG_TASK_USR_MANY_PARA_SENSOR_PRIO 12u
#define APP_CFG_TASK_USR_IMU_SENSOR_PRIO 13u
#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2u)
/*
*********************************************************************************************************
* TASK STACK SIZES
* Size of the task stacks (# of OS_STK entries)
*********************************************************************************************************
*/
#define APP_CFG_TASK_START_STK_SIZE 256u
#define APP_CFG_TASK_USR_WATCHDOG_STK_SIZE 256u
#define APP_CFG_TASK_USR_TIMER_STK_SIZE 256u
#define APP_CFG_TASK_USR_RTC_STK_SIZE 256u
#define APP_CFG_TASK_USR_HEART_STK_SIZE 1024u
#define APP_CFG_TASK_USR_NETWORK_STK_SIZE 1024u
#define APP_CFG_TASK_USR_CAMERA_STK_SIZE 1024u
#define APP_CFG_TASK_USR_INSIDE_SENSOR_STK_SIZE 1024u
#define APP_CFG_TASK_USR_MANY_PARA_SENSOR_STK_SIZE 1024u
#define APP_CFG_TASK_USR_IMU_SENSOR_STK_SIZE 1024u
/*
*********************************************************************************************************
* TRACE / DEBUG CONFIGURATION
*********************************************************************************************************
*/
#ifndef TRACE_LEVEL_OFF
#define TRACE_LEVEL_OFF 0
#endif
#ifndef TRACE_LEVEL_INFO
#define TRACE_LEVEL_INFO 1
#endif
#ifndef TRACE_LEVEL_DBG
#define TRACE_LEVEL_DBG 2
#endif
#define APP_TRACE_LEVEL TRACE_LEVEL_OFF
#define APP_TRACE printf
#define IPERF_TRACE_LEVEL TRACE_LEVEL_OFF
#define IPERF_TRACE printf
#define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
#define APP_TRACE_DBG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(APP_TRACE x) : (void)0)
#endif