mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-23 03:39:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user