Ivan Grokhotkov 8 лет назад
Родитель
Сommit
f13623d97d

+ 0 - 3
components/esp32/esp_timer.h → 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

+ 1 - 1
components/esp32/test/test_esp_timer.c

@@ -3,7 +3,7 @@
 #include <time.h>
 #include <sys/time.h>
 #include "unity.h"
-#include "../esp_timer.h"
+#include "esp_timer.h"
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
 #include "freertos/semphr.h"

+ 1 - 1
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"