]> granicus.if.org Git - esp-idf/blobdiff - components/esp32/spiram.c
Merge branch 'feature/esp-wrover-kit-v4_1' into 'master'
[esp-idf] / components / esp32 / spiram.c
index 72198734e160239b9e666443c039503ceaeb0a6a..98effb1279d5008be8fa35413144868b2e98352f 100644 (file)
@@ -185,7 +185,7 @@ esp_err_t esp_spiram_reserve_dma_pool(size_t size) {
             return ESP_ERR_NO_MEM;
         }
 
-        uint32_t caps[] = { MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL, 0, MALLOC_CAP_8BIT|MALLOC_CAP_32BIT };
+        uint32_t caps[] = { 0, MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL, MALLOC_CAP_8BIT|MALLOC_CAP_32BIT };
         esp_err_t e = heap_caps_add_region_with_caps(caps, (intptr_t) dma_heap, (intptr_t) dma_heap+next_size-1);
         if (e != ESP_OK) {
             return e;