13#elif defined(IS_ZEPHYR) || defined(ESP32_CMAKE)
26 #if defined(ESP32) && defined(ARDUINO)
27 assert(heap_caps_check_integrity_all(
true));
28 if (printMemory)
Serial.printf(
"==> Available stack: %d - heap: %u - psram: %u\n",(
int) uxTaskGetStackHighWaterMark(NULL), (
unsigned)ESP.getFreeHeap(),(
unsigned)ESP.getFreePsram());
35inline void printNChar(
char ch,
int n){
36 for (
int j=0;j<n;j++)
Serial.print(ch);
40#ifndef ESP_ARDUINO_VERSION_STR
42# define df2str(s) df2xstr(s)
43# define ESP_ARDUINO_VERSION_STR df2str(ESP_ARDUINO_VERSION_MAJOR) "." df2str(ESP_ARDUINO_VERSION_MINOR) "." df2str(ESP_ARDUINO_VERSION_PATCH)
47inline void printVersionInfo() {
49 Serial.print(
"AudioTools: ");
54 Serial.print(
"Arduino ESP Core Version: ");
55 Serial.println(ESP_ARDUINO_VERSION_STR);
56 Serial.print(
"IDF Version: ");
63#define IS_GPIO(pin) (pin >= 0)
64#define GPIO_TO_INT(pin) pin
65#define GPIO_TO_STR(pin) std::to_string(pin).c_str()
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...
static HardwareSerial Serial
Definition Arduino.h:179
#define assert(T)
Definition avr.h:10
void stop()
stops any further processing by spinning in an endless loop
Definition AudioRuntime.h:71
static void checkMemory(bool printMemory=false)
Executes heap_caps_check_integrity_all()
Definition AudioRuntime.h:25