mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
gdma: fix incorrect calculation of tx fifo size
This commit is contained in:
parent
59b763bb9a
commit
4d57a5c2c7
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user