2017-02-20 07:18:58 +00:00
|
|
|
#ifndef _PSRAM_H
|
|
|
|
#define _PSRAM_H
|
|
|
|
#include "soc/spi_reg.h"
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
PSRAM_CACHE_F80M_S40M = 0, //DO NOT USE FOR NOW
|
|
|
|
PSRAM_CACHE_F40M_S40M, //SUPPORTED
|
|
|
|
PSRAM_CACHE_F80M_S80M, //DO NOT USE FOR NOW
|
|
|
|
PSRAM_CACHE_MAX,
|
|
|
|
} psram_cache_mode_t;
|
|
|
|
|
2017-02-21 03:48:42 +00:00
|
|
|
typedef enum {
|
|
|
|
PSRAM_VADDR_MODE_NORMAL=0,
|
|
|
|
PSRAM_VADDR_MODE_LOWHIGH,
|
|
|
|
PSRAM_VADDR_MODE_EVENODD,
|
|
|
|
} psram_vaddr_mode_t;
|
|
|
|
|
|
|
|
esp_err_t psram_enable(psram_cache_mode_t mode, psram_vaddr_mode_t vaddrmode);
|
2017-02-20 07:18:58 +00:00
|
|
|
|
|
|
|
#endif
|