mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
feat(newlib): Add newlib platform function
This commit is contained in:
@ -21,6 +21,10 @@
|
||||
#include "freertos/semphr.h"
|
||||
#include "freertos/timers.h"
|
||||
|
||||
#if defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL) || defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NANO)
|
||||
#include "esp_newlib.h"
|
||||
#endif
|
||||
|
||||
static uint32_t enter_critical_wrapper(void)
|
||||
{
|
||||
taskENTER_CRITICAL();
|
||||
@ -90,7 +94,9 @@ static void task_resume_all_wrapper(void)
|
||||
|
||||
static void os_init_wrapper(void)
|
||||
{
|
||||
/* empty function */
|
||||
#if defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL) || defined(CONFIG_NEWLIB_LIBRARY_LEVEL_NANO)
|
||||
esp_newlib_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void os_start_wrapper(void)
|
||||
|
Reference in New Issue
Block a user