mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 17:16:29 +08:00
feat(esp8266): Modify old system APIs to new ones
This commit is contained in:
@ -245,7 +245,7 @@ static uint32_t queue_msg_waiting_wrapper(void *queue)
|
||||
|
||||
static uint32_t get_free_heap_size_wrapper(void)
|
||||
{
|
||||
return (uint32_t)system_get_free_heap_size();
|
||||
return (uint32_t)esp_get_free_heap_size();
|
||||
}
|
||||
|
||||
static void *timer_create_wrapper(const char *name, uint32_t period_ticks, bool auto_load, void *arg, void (*cb)(void *timer))
|
||||
@ -308,7 +308,7 @@ static void srand_wrapper(uint32_t seed)
|
||||
|
||||
static int32_t rand_wrapper(void)
|
||||
{
|
||||
return (int32_t)os_random();
|
||||
return (int32_t)esp_random();
|
||||
}
|
||||
|
||||
wifi_osi_funcs_t s_wifi_osi_funcs = {
|
||||
|
Reference in New Issue
Block a user