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.

[参考译文] TMS570LS3137:SPI 回送(非 MibSPI)和 DMA

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1026463/tms570ls3137-spi-loopback-not-mibspi-and-dma

器件型号:TMS570LS3137
主题中讨论的其他器件:HALCOGEN

您好!

从其中一个 halcogen 示例中、我看到了以下代码:

void mibspiDmaConfig (mibspi_t * mibspi、uint32通道、uint32 txchannel、uint32 rxchannel)

uint32 bufid = 0;
uint32 icount = 0;

/*设置发送和接收通道*/
mibspi->DMACTRL[通道]|=(((rxchannel<<4)|txchannel)<< 16);

/*启用发送和接收 DMA */
mibspi->DMACTRL[通道]|= 0x8000C000;

/*设置 DMA 传输的初始计数和用于 DMA 传输的缓冲区*/
mibspi->DMACTRL[通道]|=(计数<<8)|(计数<<24);

我还想为 SPI 回送创建一个 DMA 配置、但 DMACTRL 仅用于 MibSPI 基础(我对此的了解有限)。  

如何为 SPI 回送实现类似的配置?