mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
refactor(dma)!: remove deprecated functions
This commit is contained in:
@@ -63,7 +63,6 @@ typedef int sdspi_dev_handle_t;
|
||||
.set_input_delayline = NULL, \
|
||||
.dma_aligned_buffer = NULL, \
|
||||
.pwr_ctrl_handle = NULL, \
|
||||
.get_dma_info = NULL, \
|
||||
.check_buffer_alignment = sdspi_host_check_buffer_alignment, \
|
||||
.is_slot_set_to_uhs1 = NULL, \
|
||||
}
|
||||
@@ -223,19 +222,6 @@ esp_err_t sdspi_host_io_int_enable(sdspi_dev_handle_t handle);
|
||||
*/
|
||||
esp_err_t sdspi_host_io_int_wait(sdspi_dev_handle_t handle, TickType_t timeout_ticks);
|
||||
|
||||
/**
|
||||
* @brief Get the DMA memory information for the host driver
|
||||
*
|
||||
* @deprecated This API is deprecated
|
||||
*
|
||||
* @param[in] slot Not used
|
||||
* @param[out] dma_mem_info DMA memory information structure
|
||||
* @return
|
||||
* - ESP_OK: ON success.
|
||||
* - ESP_ERR_INVALID_ARG: Invalid argument.
|
||||
*/
|
||||
esp_err_t sdspi_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
|
||||
*
|
||||
|
||||
@@ -1003,14 +1003,6 @@ esp_err_t sdspi_host_io_int_wait(sdspi_dev_handle_t handle, TickType_t timeout_t
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t sdspi_host_get_dma_info(int slot, esp_dma_mem_info_t *dma_mem_info)
|
||||
{
|
||||
(void)slot;
|
||||
dma_mem_info->extra_heap_caps = MALLOC_CAP_DMA;
|
||||
dma_mem_info->dma_alignment_bytes = 4;
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
bool sdspi_host_check_buffer_alignment(int slot, const void *buf, size_t size)
|
||||
{
|
||||
//for future-proof
|
||||
|
||||
Reference in New Issue
Block a user