mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 00:56:38 +08:00
feat(pthread): Modify for ESP8266
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user