DMA

[中文]

1. Basic API Flow

Initialization → configuration → start → wait for interrupt → stop.

Basic Process of DMA API

2. Repeat Mode: FIFO → SRAM

Audio FIFOs are connected to GDMA, so FIFO or destination addresses can be programmed directly. See components/bk_cli/cli_aud.c.

DMA repeat mode config

Repeat-mode configuration

DMA repeat mode stop

Stopping repeat mode

Note

Audio FIFOs connect directly to GDMA, so they can be used without extra glue logic. For other peripherals check dma_reg.h to confirm FIFO connectivity.

3. Single Mode: SRAM → SRAM

See cli_dma.c (dma_chnl_primenumber_copy). API usage diagram:

DMA single mode

Single-shot memory copy