Part Number: AM5728
Tool/software: TI-RTOS
Hi all,
I need to know how can I configure an SPIx_d0 as MOSI or MISO and the same thing for SPIx_d1?
thanks a lot
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.
Part Number: AM5728
Tool/software: TI-RTOS
Hi all,
I need to know how can I configure an SPIx_d0 as MOSI or MISO and the same thing for SPIx_d1?
thanks a lot
Thank you very much Pavel :D I configured the dataLineCommMode and it works:
/* Modify the default SPI configurations if necessary */
spi_cfg.chnCfg[spi_cfg.chNum].dataLineCommMode = MCSPI_DATA_LINE_COMM_MODE_1;
/**
* \brief Communication on Data line pins is configured as :
* Data line 0 (SPIDAT[0]) selected for reception
* Data line 1 (SPIDAT[1]) selected for transmission
* No transmission on Data Line 0 (SPIDAT[0])
*/
#define MCSPI_DATA_LINE_COMM_MODE_1 (((uint32_t) MCSPI_CH0CONF_IS_LINE0 << \
MCSPI_CH0CONF_IS_SHIFT) | \
((uint32_t) MCSPI_CH0CONF_DPE1_ENABLED << \
MCSPI_CH0CONF_DPE1_SHIFT) | \
((uint32_t) MCSPI_CH0CONF_DPE0_DISABLED \
<< MCSPI_CH0CONF_DPE0_SHIFT))