[fix][dma] set dma_ctrl_cfg.bits.i false when do not enable irq

This commit is contained in:
qqwang 2022-04-25 20:37:50 +08:00
parent 8742503a9e
commit 21621d54cf
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static int ili9341_spi_init(void)
device_open(dma_ch3, 0);
device_set_callback(dma_ch3, NULL);
device_control(spi0, DEVICE_CTRL_ATTACH_TX_DMA, dma_ch3);
device_control(dma_ch3, DEVICE_CTRL_SET_INT, NULL);
//device_control(dma_ch3, DEVICE_CTRL_SET_INT, NULL);
} else {
return 1;
}

View File

@ -356,7 +356,7 @@ int dma_reload(struct device *dev, uint32_t src_addr, uint32_t dst_addr, uint32_
if (remain_len) {
dma_ctrl_cfg.bits.TransferSize = remain_len;
}
dma_ctrl_cfg.bits.I = 1;
dma_ctrl_cfg.bits.I = 0;
if (dma_device->transfer_mode == DMA_LLI_CYCLE_MODE) {
dma_device->lli_cfg[i].nextlli = (uint32_t)&dma_device->lli_cfg[0];