mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
512898edee
SDMMC hardware treats all buffers as aligned, and ignores 2 LSBs of addresses written into DMA descriptors. Previously SDMMC host driver assumed that data buffers passed from SDDMC command layer would be aligned. However alignment checks were never implemented in the command layer, as were the checks that the buffer coming from the application would be in DMA capable memory. Most of the time this was indeed true. However in some cases FATFS library can pass buffers offset by 2 bytes from word boundary. “DMA capable” restriction may be broken if pSRAM support is used. This change adds buffer checks to the SDMMC host driver (alignment and DMA capability), so that the host layer will error out for incompatible buffers. In SDMMC command layer, a check is added to read and write functions. If an incompatible buffer is passed from the application, new buffer (512 bytes size) is allocated, and the transfer is performed using {READ,WRITE}_SINGLE_BLOCK commands. |
||
---|---|---|
.. | ||
adc.h | ||
dac.h | ||
gpio.h | ||
i2c.h | ||
i2s.h | ||
ledc.h | ||
mcpwm.h | ||
pcnt.h | ||
periph_ctrl.h | ||
rmt.h | ||
rtc_cntl.h | ||
rtc_io.h | ||
sdmmc_defs.h | ||
sdmmc_host.h | ||
sdmmc_types.h | ||
sdspi_host.h | ||
sigmadelta.h | ||
spi_common.h | ||
spi_master.h | ||
spi_slave.h | ||
timer.h | ||
touch_pad.h | ||
uart.h |