mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 07:00:05 +08:00
feat(esp8266): Don't use ICACHE_FLASH_ATTR in SDK side
This commit is contained in:
@ -206,11 +206,11 @@ static HeapRegion_t xHeapRegions[] =
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
bool ICACHE_FLASH_ATTR __attribute__((weak))
|
||||
check_memleak_debug_enable()
|
||||
bool __attribute__((weak)) check_memleak_debug_enable(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef MEMLEAK_DEBUG
|
||||
void prvInsertBlockIntoUsedList(BlockLink_t *pxBlockToInsert)
|
||||
{
|
||||
|
@ -72,6 +72,7 @@ extern "C" {
|
||||
|
||||
#include "c_types.h"
|
||||
#include "esp_libc.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp8266/ets_sys.h"
|
||||
|
||||
#include <xtensa/xtruntime.h>
|
||||
|
@ -39,8 +39,7 @@ Compute and initialize at run-time the tick divisor (the number of
|
||||
processor clock cycles in an RTOS tick, used to set the tick timer).
|
||||
Called when the processor clock frequency is not known at compile-time.
|
||||
*/
|
||||
void ICACHE_FLASH_ATTR
|
||||
_xt_tick_divisor_init(void)
|
||||
void _xt_tick_divisor_init(void)
|
||||
{
|
||||
#ifdef XT_BOARD
|
||||
_xt_tick_divisor = xtbsp_clock_freq_hz() / XT_TICK_PER_SEC;
|
||||
|
Reference in New Issue
Block a user