gdma: fix incorrect calculation of tx fifo size

This commit is contained in:
Marius Vikhammer 2020-09-25 16:15:56 +08:00
parent 59b763bb9a
commit 4d57a5c2c7

View File

@ -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;
}
}