Add options to select running core and to enable WDT for Async

This commit is contained in:
me-no-dev
2019-06-23 08:43:46 +02:00
parent ff5c8b201d
commit cefd9e46d1
3 changed files with 62 additions and 14 deletions
+9
View File
@@ -23,12 +23,21 @@
#define ASYNCTCP_H_
#include "IPAddress.h"
#include "sdkconfig.h"
#include <functional>
extern "C" {
#include "freertos/semphr.h"
#include "lwip/pbuf.h"
}
#ifndef CONFIG_ASYNC_TCP_RUNNING_CORE
#define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core
#endif
#ifndef CONFIG_ASYNC_TCP_USE_WDT
#define CONFIG_ASYNC_TCP_USE_WDT 0 //if enabled, adds between 33us and 200us per event
#endif
class AsyncClient;
#define ASYNC_MAX_ACK_TIME 5000