mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-22 20:59:03 +00:00
[refactor][dma] rename DMA_BURST_xBYTE with DMA_BURST_INCRx
This commit is contained in:
parent
c65ae0f8f2
commit
d0092f878a
42 changed files with 270 additions and 394 deletions
|
@ -80,8 +80,8 @@ void uart1_init(void)
|
|||
DMA_DEV(dma_ch2)->dst_req = DMA_REQUEST_UART1_TX;
|
||||
DMA_DEV(dma_ch2)->src_addr_inc = DMA_ADDR_INCREMENT_ENABLE;
|
||||
DMA_DEV(dma_ch2)->dst_addr_inc = DMA_ADDR_INCREMENT_DISABLE;
|
||||
DMA_DEV(dma_ch2)->src_burst_size = DMA_BURST_1BYTE;
|
||||
DMA_DEV(dma_ch2)->dst_burst_size = DMA_BURST_1BYTE;
|
||||
DMA_DEV(dma_ch2)->src_burst_size = DMA_BURST_INCR1;
|
||||
DMA_DEV(dma_ch2)->dst_burst_size = DMA_BURST_INCR1;
|
||||
DMA_DEV(dma_ch2)->src_width = DMA_TRANSFER_WIDTH_8BIT;
|
||||
DMA_DEV(dma_ch2)->dst_width = DMA_TRANSFER_WIDTH_8BIT;
|
||||
device_open(dma_ch2, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue