kirill_76rus

worked_FreeRTOS_config

Apr 5th, 2022
1,179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.89 KB | None | 0 0
  1. /*
  2.     FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd.
  3.     All rights reserved
  4.     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
  5.     1 tab == 4 spaces!
  6. */
  7.  
  8. #ifndef FREERTOS_CONFIG_H
  9. #define FREERTOS_CONFIG_H
  10.  
  11.  
  12. #define configUSE_PREEMPTION            1
  13. #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
  14. #define configUSE_TICKLESS_IDLE         0
  15. #define configCPU_CLOCK_HZ          ( ( unsigned long ) 108000000 )
  16. #define configTICK_RATE_HZ          ( ( TickType_t ) 1000 )
  17. #define configMAX_PRIORITIES            5
  18. #define configMINIMAL_STACK_SIZE        128
  19. #define configTOTAL_HEAP_SIZE           ( ( size_t ) ( 17 * 1024 ) )
  20. #define configMAX_TASK_NAME_LEN         16
  21. #define configUSE_16_BIT_TICKS          0
  22. #define configIDLE_SHOULD_YIELD         1
  23. #define configUSE_MUTEXES           1
  24. #define configUSE_RECURSIVE_MUTEXES     1
  25. #define configUSE_COUNTING_SEMAPHORES       1
  26. #define configUSE_ALTERNATIVE_API       0 /* Deprecated! */
  27. #define configQUEUE_REGISTRY_SIZE       10
  28. #define configUSE_QUEUE_SETS            0
  29. #define configUSE_TIME_SLICING          0
  30. #define configUSE_NEWLIB_REENTRANT      0
  31. #define configENABLE_BACKWARD_COMPATIBILITY 0
  32.  
  33. /* Hook function related definitions. */
  34. #define configUSE_IDLE_HOOK         0
  35. #define configUSE_TICK_HOOK         0
  36. #define configCHECK_FOR_STACK_OVERFLOW      0
  37. #define configUSE_MALLOC_FAILED_HOOK        0
  38.  
  39. /* Run time and task stats gathering related definitions. */
  40. #define configGENERATE_RUN_TIME_STATS       0
  41. #define configUSE_TRACE_FACILITY        0
  42. #define configUSE_STATS_FORMATTING_FUNCTIONS    0
  43.  
  44. /* Co-routine related definitions. */
  45. #define configUSE_CO_ROUTINES           0
  46. #define configMAX_CO_ROUTINE_PRIORITIES 2
  47.  
  48. /* Software timer related definitions. */
  49. #define configUSE_TIMERS            1
  50. #define configTIMER_TASK_PRIORITY       3
  51. #define configTIMER_QUEUE_LENGTH        10
  52. #define configTIMER_TASK_STACK_DEPTH        configMINIMAL_STACK_SIZE
  53.  
  54. /* Interrupt nesting behaviour configuration. */
  55. #define configKERNEL_INTERRUPT_PRIORITY     255
  56. #define configMAX_SYSCALL_INTERRUPT_PRIORITY    191
  57.  
  58.  
  59.  
  60.  
  61. /* Set the following definitions to 1 to include the API function, or zero
  62. to exclude the API function. */
  63.  
  64. #define INCLUDE_vTaskPrioritySet        1
  65. #define INCLUDE_uxTaskPriorityGet       1
  66. #define INCLUDE_vTaskDelete         0
  67. #define INCLUDE_vTaskCleanUpResources       1
  68. #define INCLUDE_vTaskSuspend            1
  69. #define INCLUDE_vTaskDelayUntil         1
  70. #define INCLUDE_vTaskDelay          1
  71. #define INCLUDE_xResumeFromISR          1
  72. #define INCLUDE_xTaskGetSchedulerState      1
  73. #define INCLUDE_xTaskGetCurrentTaskHandle   0
  74. #define INCLUDE_uxTaskGetStackHighWaterMark 0
  75. #define INCLUDE_xTaskGetIdleTaskHandle      0
  76. #define INCLUDE_xTimerGetTimerDaemonTaskHandle  0
  77. #define INCLUDE_pcTaskGetTaskName       0
  78. #define INCLUDE_eTaskGetState           0
  79. #define INCLUDE_xEventGroupSetBitFromISR    1
  80. #define INCLUDE_xTimerPendFunctionCall      1
  81.  
  82.  
  83.  
  84.  
  85. #define xPortSysTickHandler SysTick_Handler
  86. #define xPortPendSVHandler PendSV_Handler
  87. #define vPortSVCHandler SVC_Handler
  88.  
  89.  
  90. #endif /* FREERTOS_CONFIG_H */
Advertisement
Add Comment
Please, Sign In to add comment