mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 08:04:33 +02:00
esp32c6: add esp_timer support
This commit is contained in:
@@ -34,6 +34,8 @@
|
|||||||
#include "esp32h2/rtc.h"
|
#include "esp32h2/rtc.h"
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C2
|
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||||
#include "esp32c2/rtc.h"
|
#include "esp32c2/rtc.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||||
|
#include "esp32c6/rtc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
@@ -34,6 +34,8 @@
|
|||||||
#include "esp32c2/rom/ets_sys.h"
|
#include "esp32c2/rom/ets_sys.h"
|
||||||
#elif CONFIG_IDF_TARGET_ESP32H2
|
#elif CONFIG_IDF_TARGET_ESP32H2
|
||||||
#include "esp32h2/rom/ets_sys.h"
|
#include "esp32h2/rom/ets_sys.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||||
|
#include "esp32c6/rom/ets_sys.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* We abuse 'timer_arg' field of ETSTimer structure to hold a pointer to esp_timer */
|
/* We abuse 'timer_arg' field of ETSTimer structure to hold a pointer to esp_timer */
|
||||||
|
@@ -29,6 +29,8 @@
|
|||||||
#include "esp32h2/rtc.h"
|
#include "esp32h2/rtc.h"
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C2
|
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||||
#include "esp32c2/rtc.h"
|
#include "esp32c2/rtc.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||||
|
#include "esp32c6/rtc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__attribute__((unused)) static const char* TAG = "system_time";
|
__attribute__((unused)) static const char* TAG = "system_time";
|
||||||
|
@@ -26,6 +26,8 @@
|
|||||||
#include "esp32h2/rom/ets_sys.h"
|
#include "esp32h2/rom/ets_sys.h"
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C2
|
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||||
#include "esp32c2/rom/ets_sys.h"
|
#include "esp32c2/rom/ets_sys.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||||
|
#include "esp32c6/rom/ets_sys.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void test_correct_delay_timer_func(void* arg)
|
static void test_correct_delay_timer_func(void* arg)
|
||||||
|
Reference in New Issue
Block a user