forked from espressif/esp-idf
Make FreeRTOS configUSE_TIMERS optional in KConfig
This commit is contained in:
committed by
Marius Vikhammer
parent
2cd9da52fe
commit
eafc452758
@@ -160,6 +160,13 @@ menu "FreeRTOS"
|
|||||||
Enable backward compatibility with APIs prior to FreeRTOS v8.0.0. (see
|
Enable backward compatibility with APIs prior to FreeRTOS v8.0.0. (see
|
||||||
configENABLE_BACKWARD_COMPATIBILITY documentation for more details).
|
configENABLE_BACKWARD_COMPATIBILITY documentation for more details).
|
||||||
|
|
||||||
|
config FREERTOS_USE_TIMERS
|
||||||
|
bool "configUSE_TIMERS"
|
||||||
|
default y
|
||||||
|
depends on !IDF_TARGET_LINUX
|
||||||
|
help
|
||||||
|
Enable FreeRTOS Software Timers.
|
||||||
|
|
||||||
config FREERTOS_TIMER_SERVICE_TASK_NAME
|
config FREERTOS_TIMER_SERVICE_TASK_NAME
|
||||||
string "configTIMER_SERVICE_TASK_NAME"
|
string "configTIMER_SERVICE_TASK_NAME"
|
||||||
default "Tmr Svc"
|
default "Tmr Svc"
|
||||||
|
@@ -180,11 +180,15 @@
|
|||||||
|
|
||||||
/* ------------------- Software Timer ---------------------- */
|
/* ------------------- Software Timer ---------------------- */
|
||||||
|
|
||||||
#define configUSE_TIMERS 1
|
#if CONFIG_FREERTOS_USE_TIMERS
|
||||||
#define configTIMER_TASK_PRIORITY CONFIG_FREERTOS_TIMER_TASK_PRIORITY
|
#define configUSE_TIMERS 1
|
||||||
#define configTIMER_QUEUE_LENGTH CONFIG_FREERTOS_TIMER_QUEUE_LENGTH
|
#define configTIMER_TASK_PRIORITY CONFIG_FREERTOS_TIMER_TASK_PRIORITY
|
||||||
#define configTIMER_TASK_STACK_DEPTH CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH
|
#define configTIMER_QUEUE_LENGTH CONFIG_FREERTOS_TIMER_QUEUE_LENGTH
|
||||||
#define configTIMER_SERVICE_TASK_NAME CONFIG_FREERTOS_TIMER_SERVICE_TASK_NAME
|
#define configTIMER_TASK_STACK_DEPTH CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH
|
||||||
|
#define configTIMER_SERVICE_TASK_NAME CONFIG_FREERTOS_TIMER_SERVICE_TASK_NAME
|
||||||
|
#else
|
||||||
|
#define configUSE_TIMERS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ------------------------ List --------------------------- */
|
/* ------------------------ List --------------------------- */
|
||||||
|
|
||||||
@@ -210,7 +214,11 @@
|
|||||||
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
||||||
#define INCLUDE_eTaskGetState 1
|
#define INCLUDE_eTaskGetState 1
|
||||||
#define INCLUDE_xTaskResumeFromISR 1
|
#define INCLUDE_xTaskResumeFromISR 1
|
||||||
#define INCLUDE_xTimerPendFunctionCall 1
|
#if CONFIG_FREERTOS_USE_TIMERS
|
||||||
|
#define INCLUDE_xTimerPendFunctionCall 1
|
||||||
|
#else
|
||||||
|
#define INCLUDE_xTimerPendFunctionCall 0
|
||||||
|
#endif
|
||||||
#define INCLUDE_xTaskGetSchedulerState 1
|
#define INCLUDE_xTaskGetSchedulerState 1
|
||||||
#define INCLUDE_xTaskGetCurrentTaskHandle 1
|
#define INCLUDE_xTaskGetCurrentTaskHandle 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user