app_cfg.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 1
  44. //#define APP_TASK_START_PRIO 2
  45. //#define PROG_TASK_PRIO 3
  46. //#define LORA_TASK_PRIO 4
  47. //#define LED_TASK_PRIO 5
  48. //#define SVC_TASK_PRIO 6
  49. //#define INFO_TASK_PRIO 7
  50. #define UART_TASK_PRIO 1
  51. #define APP_TASK_START_PRIO 2
  52. #define PROG_TASK_PRIO 6
  53. #define LORA_TASK_PRIO 4
  54. #define LED_TASK_PRIO 5
  55. #define SVC_TASK_PRIO 3
  56. #define INFO_TASK_PRIO 7
  57. #define NETTIM_TASK_PRIO 8
  58. /*
  59. *********************************************************************************************************
  60. * TASK STACK SIZES
  61. * Size of the task stacks (# of OS_STK entries)
  62. *********************************************************************************************************
  63. */
  64. #define APP_TASK_START_STK_SIZE 512
  65. #define UART_TASK_START_STK_SIZE 128
  66. #define PROG_TASK_START_STK_SIZE 1280//512
  67. #define SVC_TASK_START_STK_SIZE 400
  68. #define LORA_TASK_START_STK_SIZE 256
  69. #define INFO_TASK_START_STK_SIZE 256
  70. /*
  71. *********************************************************************************************************
  72. * uC/LIB CONFIGURATION
  73. *********************************************************************************************************
  74. */
  75. #include <lib_cfg.h>
  76. /*
  77. *********************************************************************************************************
  78. * uC/Probe CONFIGURATION
  79. *********************************************************************************************************
  80. */
  81. #define APP_CFG_PROBE_OS_PLUGIN_EN DEF_DISABLED
  82. #define APP_CFG_PROBE_COM_EN DEF_DISABLED
  83. /*
  84. *********************************************************************************************************
  85. * BSP CONFIGURATION: RS-232
  86. *********************************************************************************************************
  87. */
  88. #define BSP_SER_COMM_EN DEF_ENABLED
  89. #define BSP_CFG_SER_COMM_SEL BSP_SER_COMM_UART_02
  90. #define BSP_CFG_TS_TMR_SEL 2
  91. /*
  92. *********************************************************************************************************
  93. * TRACE / DEBUG CONFIGURATION
  94. *********************************************************************************************************
  95. */
  96. #define TRACE_LEVEL_OFF 0
  97. #define TRACE_LEVEL_INFO 1
  98. #define TRACE_LEVEL_DEBUG 2
  99. #define APP_TRACE_LEVEL TRACE_LEVEL_INFO
  100. #define APP_TRACE BSP_Ser_Printf
  101. #define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
  102. #define APP_TRACE_DEBUG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)
  103. #endif