3#if defined(ESP32) && defined(ARDUINO)
4#include <esp_task_wdt.h>
74 if (xHigherPriorityTaskWoken) {
114 void setTimer(
int id)
override {
115 if (
id >= 0 &&
id < 4) {
119 LOGE(
"Invalid timer id %d", timer_id);
145#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 1, 0)
151 LOGI(
"Timer freq: %u hz", (
unsigned)freq);
173 bool end()
override {
187 void setCore(
int core) { this->core = core; }
191 void setIsSave(
bool is_save)
override {
197 volatile bool started =
false;
208#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
226 else if (timer_id == 1)
228 else if (timer_id == 2)
230 else if (timer_id == 3)
233#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 1, 0)
255 else if (timer_id == 1)
257 else if (timer_id == 2)
259 else if (timer_id == 3)
268 LOGI(
"Task created on core %d", core);
271#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 1, 0)
286 LOGI(
"Task created on core %d", core);
316 ta->user_callback.call();
329#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0)
#define TRACEI()
Definition AudioLoggerIDF.h:32
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define IRAM_ATTR
Definition AudioStreams.h:13
#define assert(T)
Definition avr.h:10
TimeUnit
Time Units.
Definition AudioTypes.h:48
@ US
Definition AudioTypes.h:48
@ HZ
Definition AudioTypes.h:48
@ MS
Definition AudioTypes.h:48
constexpr const _Ep * end(initializer_list< _Ep > __il) noexcept
Definition InitializerList.h:63
constexpr const _Ep * begin(initializer_list< _Ep > __il) noexcept
Definition InitializerList.h:55