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.
您好!
从其中一个 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 回送实现类似的配置?
这里有一个 PSI+DMA 示例:
你好,王,你是一个很好的帮助!
是否还有任何 SPI 回送示例? 除了驱动器使能和引脚多路复用之外、我应该按原样使用 HalCoGen 配置吗?