mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 12:08:16 +00:00
Add DMA support for DAC output with configurable double-buffering via ioctl interface: - ANIOC_DAC_DMABUFF_INIT: Copy full buffer into DMA buffer (memcpy) - ANIOC_DAC_DMA_START: Start DMA with optional half-transfer interrupts - ANIOC_DAC_DMA_STOP: Stop DMA and timer - ANIOC_DAC_DMA_GET_EVENT: Wait for half-transfer complete event - ANIOC_DAC_DMA_WRITE_HBUF: Write half-buffer into DMA buffer - ANIOC_DAC_INFO: Query DAC capabilities (resolution, DMA, buffer size) Stream mode: when halfint=1, both HTIF and TCIF generate events via a ring buffer and semaphore. User writes the completed half while DMA fills the other half. TCIF indicates h=1, HTIF h=0. DMA priority is configurable per-channel via Kconfig choice (Low/Medium/High/VeryHigh), defaulting to Medium. Signed-off-by: Andrey Sobol <andrey.sobol.nn@gmail.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||