feat(esp8266): Remove critical from WIFI OSI

This commit is contained in:
Dong Heng
2018-08-27 19:22:42 +08:00
parent eacf6c3b37
commit a78fb5c99f
9 changed files with 13 additions and 33 deletions

View File

@ -37,8 +37,6 @@ extern "C" {
typedef struct {
int32_t version;
uint32_t (*enter_critical)(void);
void (*exit_critical)(uint32_t tmp);
void *(*task_create)(void *task_func, const char *name, uint32_t stack_depth, void *param, uint32_t prio);
void (*task_delete)(void *task_handle);

View File

@ -23,12 +23,6 @@ extern "C" {
extern wifi_osi_funcs_t s_wifi_osi_funcs;
#define wifi_enter_critical(t) \
t = s_wifi_osi_funcs.enter_critical()
#define wifi_exit_critical(t) \
s_wifi_osi_funcs.exit_critical(t)
#define wifi_task_create(func, name, depth, param, pri) \
s_wifi_osi_funcs.task_create(func, name, depth, param, pri)