From 4d57a5c2c7f63c3f5126d48fd596ed9168d8c0de Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Fri, 25 Sep 2020 16:15:56 +0800 Subject: [PATCH] gdma: fix incorrect calculation of tx fifo size --- components/hal/esp32s3/include/hal/gdma_ll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/hal/esp32s3/include/hal/gdma_ll.h b/components/hal/esp32s3/include/hal/gdma_ll.h index cb7f7be8f0..376f88a3ea 100644 --- a/components/hal/esp32s3/include/hal/gdma_ll.h +++ b/components/hal/esp32s3/include/hal/gdma_ll.h @@ -486,7 +486,7 @@ static inline void gdma_ll_tx_connect_to_periph(gdma_dev_t *dev, uint32_t channe static inline void gdma_ll_tx_extend_fifo_size_to(gdma_dev_t *dev, uint32_t channel, uint32_t size_in_bytes) { if (size_in_bytes > SOC_GDMA_L2_FIFO_BASE_SIZE) { - dev->sram_size[channel].out_size = size_in_bytes / 8; + dev->sram_size[channel].out_size = (size_in_bytes - SOC_GDMA_L2_FIFO_BASE_SIZE) / 8; } }