feat(esp8266): Don't use ICACHE_FLASH_ATTR in SDK side

This commit is contained in:
Wu Jian Gang
2018-05-24 12:34:22 +08:00
parent 2367c49137
commit 29f5577ac6
28 changed files with 386 additions and 392 deletions

View File

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

View File

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

View File

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