feat(esp8266): Add full icache mode

Use full 32 KB iram as icache.
This commit is contained in:
Dong Heng
2018-07-31 10:23:15 +08:00
parent 94bac51c12
commit b32c52874d
8 changed files with 55 additions and 5 deletions

View File

@ -105,6 +105,8 @@
* Note 0x80000000 is the lower address so appears in the array first.
*
*/
#include "sdkconfig.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@ -363,8 +365,10 @@ static bool is_inited = false;
xHeapRegions[0].pucStartAddress = ( uint8_t * )&_heap_start;
xHeapRegions[0].xSizeInBytes = (( size_t)( 0x40000000 - (uint32_t)&_heap_start));
#ifndef CONFIG_SOC_FULL_ICACHE
xHeapRegions[1].pucStartAddress = ( uint8_t * )&_lit4_end;
xHeapRegions[1].xSizeInBytes = (( size_t)( 0x4010C000 - (uint32_t)&_lit4_end));
#endif
is_inited = true;
vPortDefineHeapRegions(xHeapRegions);