app_cfg.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. *********************************************************************************************************
  3. * EXAMPLE CODE
  4. *
  5. * (c) Copyright 2003-2013; 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. *
  16. * APPLICATION CONFIGURATION
  17. *
  18. * ST Microelectronics STM32
  19. * on the
  20. *
  21. * Micrium uC-Eval-STM32F107
  22. * Evaluation Board
  23. *
  24. * Filename : app_cfg.h
  25. * Version : V1.00
  26. * Programmer(s) : EHS
  27. *********************************************************************************************************
  28. */
  29. #ifndef __APP_CFG_H__
  30. #define __APP_CFG_H__
  31. /*
  32. *********************************************************************************************************
  33. * MODULE ENABLE / DISABLE
  34. *********************************************************************************************************
  35. */
  36. #define APP_CFG_SERIAL_EN DEF_ENABLED
  37. #define BSP_CFG_LED_SPI2_EN DEF_ENABLED /* Enable/disable LEDs on SPI port. */
  38. #define BSP_CFG_LED_PIOC_EN DEF_ENABLED /* Enable/disable PIOC LEDs. */
  39. /*
  40. *********************************************************************************************************
  41. * TASKS NAMES
  42. *********************************************************************************************************
  43. */
  44. /*
  45. *********************************************************************************************************
  46. * TASK PRIORITIES
  47. *********************************************************************************************************
  48. */
  49. #define APP_TASK_START_PRIO 4
  50. #define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
  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 APP_CFG_TASK_LED_STK_SIZE 128
  59. #define BUFF_SIZE 1000
  60. /*
  61. *********************************************************************************************************
  62. * BSP CONFIGURATION: RS-232
  63. *********************************************************************************************************
  64. */
  65. #define BSP_CFG_SER_COMM_SEL BSP_SER_COMM_UART_02
  66. #define BSP_CFG_TS_TMR_SEL 2
  67. /*
  68. *********************************************************************************************************
  69. * TRACE / DEBUG CONFIGURATION
  70. *********************************************************************************************************
  71. */
  72. #if 0
  73. #define TRACE_LEVEL_OFF 0
  74. #define TRACE_LEVEL_INFO 1
  75. #define TRACE_LEVEL_DEBUG 2
  76. #endif
  77. #define APP_TRACE_LEVEL TRACE_LEVEL_INFO
  78. #define APP_TRACE BSP_Ser_Printf
  79. #define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
  80. #define APP_TRACE_DEBUG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)
  81. #endif