1
6
7
8
9
10
11
12
13
14
15
16
22
23
28
29
30
35
36
37
45
46
47
52
53
54
55
56
/* ... */
#pragma once
#include "esp_err.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
#define PSRAM_SIZE_2MB (2 * 1024 * 1024)
#define PSRAM_SIZE_4MB (4 * 1024 * 1024)
#define PSRAM_SIZE_8MB (8 * 1024 * 1024)
#define PSRAM_SIZE_16MB (16 * 1024 * 1024)
#define PSRAM_SIZE_32MB (32 * 1024 * 1024)
#define PSRAM_SIZE_64MB (64 * 1024 * 1024)6 defines
/* ... */
esp_err_t esp_psram_impl_get_physical_size(uint32_t *out_size_bytes);
/* ... */
esp_err_t esp_psram_impl_get_available_size(uint32_t *out_size_bytes);
/* ... */
esp_err_t esp_psram_impl_enable(void);
/* ... */
uint8_t esp_psram_impl_get_cs_io(void);
#ifdef __cplusplus
}{...}
#endif