You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- /*
- *********************************************************************************************************
- * APPLICATION CONFIGURATION
- *
- * Filename : app_cfg.h
- *********************************************************************************************************
- */
-
- #ifndef _APP_CFG_H_
- #define _APP_CFG_H_
-
-
- /*
- *********************************************************************************************************
- * uC/OS-II CPU CONFIGURATION
- *********************************************************************************************************
- */
- /* Kernel aware interrupt priority boundary */
- #define CPU_CFG_KA_IPL_BOUNDARY 4u
- /* STM32F4 uses 4-bits NVIC priority (bits 7:4) */
- #define CPU_CFG_NVIC_PRIO_BITS 4u
-
-
- /*
- *********************************************************************************************************
- * INCLUDE FILES
- *********************************************************************************************************
- */
-
- #include <stdio.h>
-
-
- /*
- *********************************************************************************************************
- * TRACE / DEBUG CONFIGURATION
- *********************************************************************************************************
- */
-
- #ifndef TRACE_LEVEL_OFF
- #define TRACE_LEVEL_OFF 0u
- #endif
-
- #ifndef TRACE_LEVEL_INFO
- #define TRACE_LEVEL_INFO 1u
- #endif
-
- #ifndef TRACE_LEVEL_DBG
- #define TRACE_LEVEL_DBG 2u
- #endif
-
- #define APP_TRACE_LEVEL TRACE_LEVEL_OFF
- #define APP_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)
-
-
- /*
- *********************************************************************************************************
- * TASK PRIORITIES
- *********************************************************************************************************
- */
-
- #define APP_TASK_START_PRIO 5u
- #define APP_TASK_LED_PRIO 6u
- #define APP_TASK_MODBUS_PRIO 4u
-
- #define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2u)
-
-
- /*
- *********************************************************************************************************
- * TASK STACK SIZES
- *********************************************************************************************************
- */
-
- #define APP_TASK_START_STK_SIZE 128u
- #define APP_TASK_LED_STK_SIZE 128u
-
-
- #endif
|