From f13623d97db0ca4776a502d39bb0f5254a50394c Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 16 Oct 2017 00:37:00 +0800 Subject: [PATCH] make esp_timer.h public --- components/esp32/{ => include}/esp_timer.h | 3 --- components/esp32/test/test_esp_timer.c | 2 +- components/newlib/time.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) rename components/esp32/{ => include}/esp_timer.h (98%) diff --git a/components/esp32/esp_timer.h b/components/esp32/include/esp_timer.h similarity index 98% rename from components/esp32/esp_timer.h rename to components/esp32/include/esp_timer.h index f5ba21967..e3e8b4812 100644 --- a/components/esp32/esp_timer.h +++ b/components/esp32/include/esp_timer.h @@ -18,9 +18,6 @@ * @file esp_timer.h * @brief microsecond-precision 64-bit timer API, replacement for ets_timer * - * Not a public header yet. To be moved into include/ directory when it is made - * public. - * * esp_timer APIs allow components to receive callbacks when a hardware timer * reaches certain value. The timer provides microsecond accuracy and * up to 64 bit range. Note that while the timer itself provides microsecond diff --git a/components/esp32/test/test_esp_timer.c b/components/esp32/test/test_esp_timer.c index 246aac9d8..9206d312d 100644 --- a/components/esp32/test/test_esp_timer.c +++ b/components/esp32/test/test_esp_timer.c @@ -3,7 +3,7 @@ #include #include #include "unity.h" -#include "../esp_timer.h" +#include "esp_timer.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" diff --git a/components/newlib/time.c b/components/newlib/time.c index 1427dcfde..0357f6412 100644 --- a/components/newlib/time.c +++ b/components/newlib/time.c @@ -26,7 +26,7 @@ #include "esp_attr.h" #include "esp_intr_alloc.h" #include "esp_clk.h" -#include "../esp32/esp_timer.h" +#include "esp_timer.h" #include "soc/soc.h" #include "soc/rtc.h" #include "soc/rtc_cntl_reg.h"