feat(startup): add fast boot and fast restart function

This commit is contained in:
dongheng
2020-02-17 14:39:32 +08:00
committed by Dong Heng
parent 4b466c782d
commit b967caefaf
19 changed files with 428 additions and 43 deletions

View File

@ -205,6 +205,9 @@
#define CACHE_READ_EN_BIT BIT8
//}}
#define ESP_CACHE1_ADDR_MAX (0x100000)
#define ESP_CACHE2_ADDR_MAX (0x200000)
#define DRAM_BASE (0x3FFE8000)
#define DRAM_SIZE (96 * 1024)

View File

@ -1,9 +1,16 @@
#ifndef _ROM_FUNCTIONS_H
#define _ROM_FUNCTIONS_H
#include "sdkconfig.h"
#include <stdint.h>
#include <stdarg.h>
#ifdef CONFIG_SOC_FULL_ICACHE
#define SOC_CACHE_SIZE 1 // 32KB
#else
#define SOC_CACHE_SIZE 0 // 16KB
#endif
#define ROM_FLASH_BUF_DECLARE(__name, __size) uint8_t __name[__size] __attribute__((aligned(4)))
typedef struct {