训练营PLSR题目
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

113 Zeilen
4.8 KiB

  1. /*
  2. *********************************************************************************************************
  3. * uC/OS-II
  4. * The Real-Time Kernel
  5. *
  6. * (c) Copyright 2012; Micrium, Inc.; Weston, FL
  7. *
  8. * All rights reserved. Protected by international copyright laws.
  9. *
  10. * uC/OS-II is provided in source form for FREE evaluation, for educational
  11. * use or peaceful research. If you plan on using uC/OS-II in a commercial
  12. * product you need to contact Micrium to properly license its use in your
  13. * product. We provide ALL the source code for your convenience and to
  14. * help you experience uC/OS-II. The fact that the source code is provided
  15. * does NOT mean that you can use it without paying a licensing fee.
  16. *
  17. * Knowledge of the source code may NOT be used to develop a similar product.
  18. *
  19. * Please help us continue to provide the Embedded community with the finest
  20. * software available. Your honesty is greatly appreciated.
  21. *********************************************************************************************************
  22. */
  23. /*
  24. *********************************************************************************************************
  25. *
  26. * APPLICATION CONFIGURATION
  27. *
  28. * IAR Development Kits
  29. * on the
  30. *
  31. * STM32F429II-SK KICKSTART KIT
  32. *
  33. * Filename : app_cfg.h
  34. * Version : V1.00
  35. * Programmer(s) : FT
  36. *********************************************************************************************************
  37. */
  38. #ifndef APP_CFG_MODULE_PRESENT
  39. #define APP_CFG_MODULE_PRESENT
  40. /*
  41. *********************************************************************************************************
  42. * ADDITIONAL uC/MODULE ENABLES
  43. *********************************************************************************************************
  44. */
  45. /*
  46. *********************************************************************************************************
  47. * TASK PRIORITIES
  48. *********************************************************************************************************
  49. */
  50. #define APP_CFG_TASK_START_PRIO 2u
  51. #define APP_CFG_TASK_EQ_PRIO 4u
  52. /*
  53. *********************************************************************************************************
  54. * TASK STACK SIZES
  55. *********************************************************************************************************
  56. */
  57. #define APP_CFG_TASK_START_STK_SIZE 128u
  58. #define APP_CFG_TASK_BLINKY_STK_SIZE 128u
  59. #define APP_CFG_TASK_EQ_STK_SIZE 512u
  60. /*
  61. *********************************************************************************************************
  62. * TASK STACK SIZES LIMIT
  63. *********************************************************************************************************
  64. */
  65. #define APP_CFG_TASK_START_STK_SIZE_PCT_FULL 90u
  66. #define APP_CFG_TASK_START_STK_SIZE_LIMIT (APP_CFG_TASK_START_STK_SIZE * (100u - APP_CFG_TASK_START_STK_SIZE_PCT_FULL)) / 100u
  67. #define APP_CFG_TASK_BLINKY_STK_SIZE_LIMIT (APP_CFG_TASK_BLINKY_STK_SIZE * (100u - APP_CFG_TASK_START_STK_SIZE_PCT_FULL)) / 100u
  68. /*
  69. *********************************************************************************************************
  70. * TRACE / DEBUG CONFIGURATION
  71. *********************************************************************************************************
  72. */
  73. #ifndef TRACE_LEVEL_OFF
  74. #define TRACE_LEVEL_OFF 0
  75. #endif
  76. #ifndef TRACE_LEVEL_INFO
  77. #define TRACE_LEVEL_INFO 1
  78. #endif
  79. #ifndef TRACE_LEVEL_DBG
  80. #define TRACE_LEVEL_DBG 2
  81. #endif
  82. #define APP_CFG_TRACE_LEVEL TRACE_LEVEL_OFF
  83. #define APP_CFG_TRACE printf
  84. #define BSP_CFG_TRACE_LEVEL TRACE_LEVEL_OFF
  85. #define BSP_CFG_TRACE printf
  86. #define APP_TRACE_INFO(x) ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_CFG_TRACE x) : (void)0)
  87. #define APP_TRACE_DBG(x) ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(APP_CFG_TRACE x) : (void)0)
  88. #define BSP_TRACE_INFO(x) ((BSP_CFG_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(BSP_CFG_TRACE x) : (void)0)
  89. #define BSP_TRACE_DBG(x) ((BSP_CFG_TRACE_LEVEL >= TRACE_LEVEL_DBG) ? (void)(BSP_CFG_TRACE x) : (void)0)
  90. #endif