mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(esp8266): Add option to init OS before starting it
This commit is contained in:
@ -155,6 +155,11 @@ void call_user_start(size_t start_addr)
|
||||
|
||||
heap_caps_init();
|
||||
|
||||
#ifdef CONFIG_INIT_OS_BEFORE_START
|
||||
extern int __esp_os_init(void);
|
||||
assert(__esp_os_init() == 0);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL) || defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NANO)
|
||||
esp_newlib_init();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user