We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f357f4a commit a3d3712Copy full SHA for a3d3712
ports/espressif/common-hal/espidf/__init__.c
@@ -108,17 +108,15 @@ size_t common_hal_espidf_get_total_psram(void) {
108
109
intptr_t common_hal_espidf_get_psram_start(void) {
110
#ifdef CONFIG_SPIRAM
111
- if (esp_psram_is_initialized()) {
112
- return SOC_EXTRAM_DATA_LOW;
113
- }
+ return (intptr_t)esp_psram_get_address();
114
#endif
115
return 0;
116
}
117
118
intptr_t common_hal_espidf_get_psram_end(void) {
119
120
if (esp_psram_is_initialized()) {
121
- return SOC_EXTRAM_DATA_LOW + psram_size_usable();
+ return common_hal_espidf_get_psram_start() + psram_size_usable();
122
123
124
0 commit comments