/* ********************************************************************************************************* * EXAMPLE CODE * * (c) Copyright 2009; 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 * * ST Microelectronics STM32 * on the * * Micrium uC-Eval-STM32F107 * Evaluation Board * * Filename : app_cfg.h * Version : V1.00 * Programmer(s) : JJL * EHS ********************************************************************************************************* */ #ifndef __APP_CFG_H__ #define __APP_CFG_H__ /* ********************************************************************************************************* * BSP CONFIGURATION ********************************************************************************************************* */ #define BSP_CFG_LED_SPI2_EN DEF_ENABLED /* Enable/disable LEDs on SPI port. */ #define BSP_CFG_LED_PIOC_EN DEF_ENABLED /* Enable/disable PIOC LEDs. */ /* ********************************************************************************************************* * TASK PRIORITIES ********************************************************************************************************* */ #define UART_TASK_PRIO 2 #define APP_TASK_START_PRIO 2 #define PROG_TASK_PRIO 3 #define LORA_TASK_PRIO 5 #define LED_TASK_PRIO 6 #define OTA_TASK_PRIO 5 #define INFO_TASK_PRIO 8 #define ENCODER_TASK_PRIO 3 /* ********************************************************************************************************* * TASK STACK SIZES * Size of the task stacks (# of OS_STK entries) ********************************************************************************************************* */ #define APP_TASK_START_STK_SIZE 128 #define UART_TASK_START_STK_SIZE 128 #define PROG_TASK_START_STK_SIZE 512 #define OTA_TASK_START_STK_SIZE 1024 #define LORA_TASK_START_STK_SIZE 1024 #define INFO_TASK_START_STK_SIZE 256 #define ENCODER_TASK_START_STK_SIZE 512 /* ********************************************************************************************************* * uC/LIB CONFIGURATION ********************************************************************************************************* */ #include /* ********************************************************************************************************* * uC/Probe CONFIGURATION ********************************************************************************************************* */ #define APP_CFG_PROBE_OS_PLUGIN_EN DEF_DISABLED #define APP_CFG_PROBE_COM_EN DEF_DISABLED /* ********************************************************************************************************* * BSP CONFIGURATION: RS-232 ********************************************************************************************************* */ #define BSP_SER_COMM_EN DEF_ENABLED #define BSP_CFG_SER_COMM_SEL BSP_SER_COMM_UART_02 #define BSP_CFG_TS_TMR_SEL 2 /* ********************************************************************************************************* * TRACE / DEBUG CONFIGURATION ********************************************************************************************************* */ #define TRACE_LEVEL_OFF 0 #define TRACE_LEVEL_INFO 1 #define TRACE_LEVEL_DEBUG 2 #define APP_TRACE_LEVEL TRACE_LEVEL_INFO #define APP_TRACE BSP_Ser_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