solarium/.svn/pristine/dc/dc4804b90c7fe7025041acbb23d64c7d16602222.svn-base
2021-04-15 21:07:13 +03:00

53 lines
1.9 KiB
Plaintext

#ifndef __APP_CFG_H__
#define __APP_CFG_H__
/*
*********************************************************************************************************
* TASK PRIORITIES
*********************************************************************************************************
*/
#define APP_TASK_START_PRIO 5
#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
#define USER_LOWEST_PRIO (OS_LOWEST_PRIO - 3)
#define USER_HIGHEST_PRIO 6
/*
*********************************************************************************************************
* TASK STACK SIZES
*********************************************************************************************************
*/
#define APP_TASK_START_STK_SIZE 256
/*
*********************************************************************************************************
* uC/OS-II DCC CONFIGURATION
*********************************************************************************************************
*/
#define OS_CPU_ARM_DCC_EN 0
/*
*********************************************************************************************************
* 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)
#endif