CM_DOG/README.md
2025-06-24 10:28:20 +08:00

24 lines
658 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# CtrBoard-H7_ALL
## 简介
本项目用于演示如何在不同内存区域分配缓冲区并支持多种DMADMA1/DMA2/MDMA/BDMA操作。
## Usage
以下代码展示了如何将缓冲区分配到不同的内存区域:
```c
// DTCM 和 ITCM 不支持 DMA1DMA2 和 BDMA仅支持 MDMA。
// AXI SRAMDMA1/DMA2/MDMA支持
uint8_t buf_axi[128] __attribute__((section(".AXI_SRAM")));
// SRAM1
uint8_t buf_sram1[128] __attribute__((section(".SRAM1")));
// SRAM2
uint8_t buf_sram2[128] __attribute__((section(".SRAM2")));
// SRAM4支持所有DMA包括BDMA
uint8_t buf_sram4[128] __attribute__((section(".SRAM4")));