#ifndef APP_CFG_H #define APP_CFG_H /* * uC/OS-II优先级数值越小,任务优先级越高。 * 每个任务必须使用不同的优先级;0通常留给最紧急的系统任务。 */ #define APP_TASK_PLSR_PRIO 4u #define APP_TASK_MODBUS_PRIO 5u /* * 任务栈大小的单位是OS_STK元素。当前OS_STK为32位。 */ #define APP_TASK_PLSR_STK_SIZE 512u #define APP_TASK_MODBUS_STK_SIZE 512u /* Maximum profile items planned by one high-priority producer pass. */ #define APP_PLSR_PRODUCER_BUDGET 32u /* The short-profile pulse IRQ needs more than the port's 128-word default. */ #define OS_CPU_EXCEPT_STK_SIZE 512u #endif