mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(drivers): enlarge the default DMA burst size in peripheral drivers
This commit is contained in:
@@ -460,7 +460,7 @@ static esp_err_t parlio_rx_unit_init_dma(parlio_rx_unit_handle_t rx_unit, size_t
|
||||
gdma_apply_strategy(rx_unit->dma_chan, &gdma_strategy_conf);
|
||||
|
||||
// configure DMA transfer parameters
|
||||
rx_unit->dma_burst_size = dma_burst_size ? dma_burst_size : 16;
|
||||
rx_unit->dma_burst_size = dma_burst_size ? dma_burst_size : 32;
|
||||
gdma_transfer_config_t trans_cfg = {
|
||||
.max_data_burst_size = rx_unit->dma_burst_size, // Enable DMA burst transfer for better performance,
|
||||
.access_ext_mem = true,
|
||||
|
||||
@@ -154,7 +154,7 @@ static esp_err_t parlio_tx_unit_init_dma(parlio_tx_unit_t *tx_unit, const parlio
|
||||
|
||||
// configure DMA transfer parameters
|
||||
gdma_transfer_config_t trans_cfg = {
|
||||
.max_data_burst_size = config->dma_burst_size ? config->dma_burst_size : 16, // Enable DMA burst transfer for better performance,
|
||||
.max_data_burst_size = config->dma_burst_size ? config->dma_burst_size : 32, // Enable DMA burst transfer for better performance,
|
||||
.access_ext_mem = true, // support transmit PSRAM buffer
|
||||
};
|
||||
ESP_RETURN_ON_ERROR(gdma_config_transfer(tx_unit->dma_chan, &trans_cfg), TAG, "config DMA transfer failed");
|
||||
|
||||
Reference in New Issue
Block a user