app_cfg.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. *********************************************************************************************************
  3. * EXAMPLE CODE
  4. *
  5. * (c) Copyright 2009; Micrium, Inc.; Weston, FL
  6. *
  7. * All rights reserved. Protected by international copyright laws.
  8. * Knowledge of the source code may NOT be used to develop a similar product.
  9. * Please help us continue to provide the Embedded community with the finest
  10. * software available. Your honesty is greatly appreciated.
  11. *********************************************************************************************************
  12. */
  13. /*
  14. *********************************************************************************************************
  15. * APPLICATION CONFIGURATION
  16. *
  17. * ST Microelectronics STM32
  18. * on the
  19. *
  20. * Micrium uC-Eval-STM32F107
  21. * Evaluation Board
  22. *
  23. * Filename : app_cfg.h
  24. * Version : V1.00
  25. * Programmer(s) : JJL
  26. * EHS
  27. *********************************************************************************************************
  28. */
  29. #ifndef __APP_CFG_H__
  30. #define __APP_CFG_H__
  31. /*
  32. *********************************************************************************************************
  33. * BSP CONFIGURATION
  34. *********************************************************************************************************
  35. */
  36. #define BSP_CFG_LED_SPI2_EN DEF_ENABLED /* Enable/disable LEDs on SPI port. */
  37. #define BSP_CFG_LED_PIOC_EN DEF_ENABLED /* Enable/disable PIOC LEDs. */
  38. /*
  39. *********************************************************************************************************
  40. * TASK PRIORITIES
  41. *********************************************************************************************************
  42. */
  43. #define UART_TASK_PRIO 2
  44. #define APP_TASK_START_PRIO 2
  45. #define PROG_TASK_PRIO 3
  46. #define LORA_TASK_PRIO 5
  47. #define LED_TASK_PRIO 6
  48. #define OTA_TASK_PRIO 5
  49. #define INFO_TASK_PRIO 8
  50. #define ENCODER_TASK_PRIO 3
  51. /*
  52. *********************************************************************************************************
  53. * TASK STACK SIZES
  54. * Size of the task stacks (# of OS_STK entries)
  55. *********************************************************************************************************
  56. */
  57. #define APP_TASK_START_STK_SIZE 128
  58. #define UART_TASK_START_STK_SIZE 128
  59. #define PROG_TASK_START_STK_SIZE 512
  60. #define OTA_TASK_START_STK_SIZE 1024
  61. #define LORA_TASK_START_STK_SIZE 1024
  62. #define INFO_TASK_START_STK_SIZE 256
  63. #define ENCODER_TASK_START_STK_SIZE 512
  64. /*
  65. *********************************************************************************************************
  66. * uC/LIB CONFIGURATION
  67. *********************************************************************************************************
  68. */
  69. #include <lib_cfg.h>
  70. /*
  71. *********************************************************************************************************
  72. * uC/Probe CONFIGURATION
  73. *********************************************************************************************************
  74. */
  75. #define APP_CFG_PROBE_OS_PLUGIN_EN DEF_DISABLED
  76. #define APP_CFG_PROBE_COM_EN DEF_DISABLED
  77. /*
  78. *********************************************************************************************************
  79. * BSP CONFIGURATION: RS-232
  80. *********************************************************************************************************
  81. */
  82. #define BSP_SER_COMM_EN DEF_ENABLED
  83. #define BSP_CFG_SER_COMM_SEL BSP_SER_COMM_UART_02
  84. #define BSP_CFG_TS_TMR_SEL 2
  85. /*
  86. *********************************************************************************************************
  87. * TRACE / DEBUG CONFIGURATION
  88. *********************************************************************************************************
  89. */
  90. #define TRACE_LEVEL_OFF 0
  91. #define TRACE_LEVEL_INFO 1
  92. #define TRACE_LEVEL_DEBUG 2
  93. #define APP_TRACE_LEVEL TRACE_LEVEL_INFO
  94. #define APP_TRACE BSP_Ser_Printf
  95. #define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
  96. #define APP_TRACE_DEBUG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)
  97. #endif