Other Parts Discussed in Thread: HALCOGEN
Hello,
From one of the halcogen examples, I have seen these codes:
void mibspiDmaConfig(mibspiBASE_t *mibspi,uint32 channel, uint32 txchannel, uint32 rxchannel)
{
uint32 bufid = 0;
uint32 icount = 0;
/* setting transmit and receive channels */
mibspi->DMACTRL[channel] |= (((rxchannel<<4)|txchannel) << 16);
/* enabling transmit and receive dma */
mibspi->DMACTRL[channel] |= 0x8000C000;
/* setting Initial Count of DMA transfers and the buffer utilized for DMA transfer */
mibspi->DMACTRL[channel] |= (icount << 8) |(bufid<<24);
}
I also want to create a DMA config for an SPI loopback but DMACTRL is only used for mibSPI base (I have limited knowledge about it).
How can I implement a similar config for SPI loopback?