feat(pthread): Modify for ESP8266

This commit is contained in:
Dong Heng
2018-08-27 11:54:55 +08:00
parent e492bda28c
commit 1fc474b8c9
15 changed files with 75 additions and 221 deletions

View File

@ -39,6 +39,7 @@ extern int base_gpio_init(void);
extern int watchdog_init(void);
extern int wifi_timer_init(void);
extern int wifi_nvs_init(void);
extern esp_err_t esp_pthread_init(void);
static void user_init_entry(void *param)
{
@ -67,6 +68,10 @@ static void user_init_entry(void *param)
esp_task_wdt_init();
#endif
#ifdef CONFIG_ENABLE_PTHREAD
assert(esp_pthread_init() == 0);
#endif
app_main();
wifi_task_delete(NULL);