#pragma once #include #include #include #include // Disable brownout problems #include "soc/rtc_cntl_reg.h" #include "soc/soc.h" /* * Macros */ #define NAME_OF(x) #x /* * Feature flags */ #include #if USE_WIFI #include #endif #if USE_WIFI && USE_WEBSERVER #if USE_WEBSERVER_SSL #define ASYNC_TCP_SSL_ENABLED 1 #include #endif #include #endif #if USE_OAT #include #endif #if USE_DNS_SERVER #include #endif #if USE_MDNS #include #endif #define STACK_SIZE (ESP_TASK_MAIN_STACK) // Stack size for each new thread /* * Thread priority */ #define NET_PRIORITY tskIDLE_PRIORITY+5 #define MOVEMENT_PRIORITY tskIDLE_PRIORITY+3 #define JSONWRITER_PRIORITY tskIDLE_PRIORITY+2 /* * Thread core */ #define NET_CORE 1 #define MOVEMENT_CORE 0 #define JSONWRITER_CORE 0 /* * Main include */ #include #include #include #include #if USE_CAMERA #include #endif #if USE_WIFI && USE_WEBSERVER #include #endif #if USE_WIFI #include #endif