This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] EK-TM4C123GXL:UDMA 控制表为32位

Guru**** 2134230 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1284633/ek-tm4c123gxl-udma-control-table-as-32bit

器件型号:EK-TM4C123GXL

为什么在 Tivaware 示例中、UDMA 控制表被声明为 uint8_t 而不是 uint32_t?

根据数据表、针对目标地址等的"寄存器"为32位长。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

     我想原因是 uDMA 控制表必须与1024字节对齐。 为了满足此要求、该示例的软件开发人员按如下方式使用 pragma DATA_ALIGN 来强制对齐。 我想 uint32_t 可以用于  pui8ControlTable[256]来实现相同的目的。  

    #pragma DATA_ALIGN (pui8ControlTable、1024)
    uint8_t pui8ControlTable[1024];

    作为一名校长、我目前正在度假。 我的答复可能会有延误。