esp_timer: only add as a public dependency to FreeRTOS if necessary

esp_timer will be added as a dependency to freertos only if
CONFIG_FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER is enabled.
Other components are updated to add esp_timer as public or private
dependency, as needed.
This removes esp_timer from the default list of public dependencies.
This commit is contained in:
Ivan Grokhotkov
2022-04-16 08:34:22 +02:00
parent 708e99497b
commit b0544b9745
4 changed files with 21 additions and 10 deletions

View File

@@ -382,7 +382,6 @@ portmacro.h. Therefore, we need to keep these headers around for now to allow th
#include <stdarg.h>
#include <xtensa/hal.h>
#include "esp_attr.h"
#include "esp_timer.h"
#include "esp_newlib.h"
#include "esp_heap_caps.h"
#include "esp_rom_sys.h"
@@ -392,6 +391,11 @@ portmacro.h. Therefore, we need to keep these headers around for now to allow th
#include <xtensa/config/system.h>
#include <xtensa/xtensa_api.h>
/* [refactor-todo] introduce a port wrapper function to avoid including esp_timer.h into the public header */
#if CONFIG_FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER
#include "esp_timer.h"
#endif
#ifdef __cplusplus
}
#endif