Skip to content
Snippets Groups Projects
Commit 54fc247f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/ets_alt_task: Update for vendor SDK 1.5.0.

SDK 1.5.0 has a task with priority 3: ets_task(401001f4, 3, 3fff9808, 4).
Recognizing SDK version requires the latets esp-open-sdk build.
parent 97375f45
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include "osapi.h" #include "osapi.h"
#include "os_type.h" #include "os_type.h"
#include "ets_sys.h" #include "ets_sys.h"
#include <esp_sdk_ver.h>
#include "etshal.h" #include "etshal.h"
#include "user_interface.h" #include "user_interface.h"
...@@ -22,7 +23,11 @@ struct task_entry { ...@@ -22,7 +23,11 @@ struct task_entry {
static void (*idle_cb)(void *); static void (*idle_cb)(void *);
static void *idle_arg; static void *idle_arg;
#if ESP_SDK_VERSION >= 010500
# define FIRST_PRIO 3
#else
# define FIRST_PRIO 0x14 # define FIRST_PRIO 0x14
#endif
#define LAST_PRIO 0x20 #define LAST_PRIO 0x20
#define PRIO2ID(prio) ((prio) - FIRST_PRIO) #define PRIO2ID(prio) ((prio) - FIRST_PRIO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment