mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-27 09:24:45 +08:00
feat(newlib): Add newlib platform function
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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