MCU: TM4C1294NCPDT
TI-RTOS: v2.01.00.03
CCS: v6.0.1.0040
Hello,
How do we select the CS (chip select) pin of an SPI communication line in the structure SPITivaDMA_HWAttrs?
I find the following structure defined in the example files of TM4C1294XL eval board:
/* SPI configuration structure, describing which pins are to be used */
const SPITivaDMA_HWAttrs spiTivaDMAHWAttrs[EK_TM4C1294XL_SPICOUNT] = {
{
SSI2_BASE,
INT_SSI2,
&spiTivaDMAscratchBuf[0],
0,
UDMA_SEC_CHANNEL_UART2RX_12,
UDMA_SEC_CHANNEL_UART2TX_13,
uDMAChannelAssign,
UDMA_CH12_SSI2RX,
UDMA_CH13_SSI2TX
},
{
SSI3_BASE,
INT_SSI3,
&spiTivaDMAscratchBuf[1],
0,
UDMA_SEC_CHANNEL_TMR2A_14,
UDMA_SEC_CHANNEL_TMR2B_15,
uDMAChannelAssign,
UDMA_CH14_SSI3RX,
UDMA_CH15_SSI3TX
}
};
But how do we select a CS pin here?
In the SSI3 module example of Tiva EK-TM4C1294XL, the CS pin is assigned to port pin PQ1 but I want to change it to pin PN4. How to do that?
Thanks in advance
Regards
Soumyajit