Merge branch 'bugfix/fix_psram_eid_v3.1' into 'release/v3.1'

psram: fix psram eid (backport v3.1)

See merge request idf/esp-idf!3467
This commit is contained in:
Ivan Grokhotkov
2018-11-01 22:15:04 +08:00
4 changed files with 214 additions and 125 deletions

View File

@@ -18,8 +18,23 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
typedef enum {
ESP_SPIRAM_SIZE_32MBITS = 0, /*!< SPI RAM size is 32 MBits */
ESP_SPIRAM_SIZE_64MBITS = 1, /*!< SPI RAM size is 64 MBits */
ESP_SPIRAM_SIZE_INVALID, /*!< SPI RAM size is invalid */
} esp_spiram_size_t;
/**
* @brief get SPI RAM size
* @return
* - ESP_SPIRAM_SIZE_INVALID if SPI RAM not enabled or not valid
* - SPI RAM size
*/
esp_spiram_size_t esp_spiram_get_chip_size();
/**
* @brief Initialize spiram interface/hardware. Normally called from cpu_start.c.
*