feat(newlib): Add newlib platform function

This commit is contained in:
Dong Heng
2018-05-11 17:27:54 +08:00
parent 58a66a3d39
commit 30de450816
11 changed files with 330 additions and 13 deletions

View File

@ -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)