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

@ -7,7 +7,7 @@ COMPONENT_SRCDIRS := driver source
LIBS ?=
ifndef CONFIG_NO_BLOBS
LIBS += airkiss cirom crypto espnow gcc hal core mirom net80211 \
LIBS += airkiss crypto espnow gcc hal core net80211 \
phy pp pwm smartconfig ssc wpa wps
endif

View File

@ -86,7 +86,6 @@ typedef enum {
#define REG_SET_BIT(_r, _b) (*(volatile uint32 *)(_r) |= (_b))
#define REG_CLR_BIT(_r, _b) (*(volatile uint32 *)(_r) &= ~(_b))
#define __packed __attribute__((packed))
#define STORE_ATTR __attribute__((aligned(4)))
#define SHMEM_ATTR

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)