mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-28 05:09:39 +01:00
refactor(sd): replace esp_dma_ with heap_caps_
This commit is contained in:
@@ -49,7 +49,8 @@ extern "C" {
|
||||
.set_input_delay = &sdmmc_host_set_input_delay, \
|
||||
.dma_aligned_buffer = NULL, \
|
||||
.pwr_ctrl_handle = NULL, \
|
||||
.get_dma_info = &sdmmc_host_get_dma_info, \
|
||||
.get_dma_info = NULL, \
|
||||
.check_buffer_alignment = &sdmmc_host_check_buffer_alignment, \
|
||||
.is_slot_set_to_uhs1 = &sdmmc_host_is_slot_set_to_uhs1, \
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include "esp_err.h"
|
||||
#include "driver/sdmmc_types.h"
|
||||
#include "driver/sdmmc_default_configs.h"
|
||||
@@ -276,13 +277,27 @@ esp_err_t sdmmc_host_set_input_delay(int slot, sdmmc_delay_phase_t delay_phase);
|
||||
/**
|
||||
* @brief Get the DMA memory information for the host driver
|
||||
*
|
||||
* @deprecated This API is deprecated
|
||||
*
|
||||
* @param[in] slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
|
||||
* @param[out] dma_mem_info DMA memory information structure
|
||||
* @return
|
||||
* - ESP_OK: ON success.
|
||||
* - ESP_ERR_INVALID_ARG: Invalid argument.
|
||||
*/
|
||||
esp_err_t sdmmc_host_get_dma_info(int slot, esp_dma_mem_info_t *dma_mem_info);
|
||||
esp_err_t sdmmc_host_get_dma_info(int slot, esp_dma_mem_info_t *dma_mem_info) __attribute__((deprecated("This API is deprecated")));
|
||||
|
||||
/**
|
||||
* @brief Check if the buffer meets the alignment requirements
|
||||
*
|
||||
* @param[in] slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
|
||||
* @param[in] buf buffer pointer
|
||||
* @param[in] size buffer size
|
||||
*
|
||||
* @return
|
||||
* True for aligned buffer, false for not aligned buffer
|
||||
*/
|
||||
bool sdmmc_host_check_buffer_alignment(int slot, const void *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Check if the slot is set to uhs1 or not
|
||||
|
||||
Reference in New Issue
Block a user