Hello all,
I am trying to configure the SPI registers but there is conflict between SPI module registers names defined in C5515 data sheet and the example in CSL library for C5515.
The example in CSL library csl_spi_example says that:
/* Send Read Status Command */ CSL_FINS(CSL_SPI_REGS->SPIDR2,SPI_SPIDR2_DATA,0x0500); CSL_FINS(CSL_SPI_REGS->SPIDR1,SPI_SPIDR1_DATA,0x0);
But there is not any register description named SPIDR2 or SPIDR1 in the SPI module registers names defined in C5515 data sheet. I think these two lines should be:
/* Send Read Status Command */ CSL_FINS(CSL_SPI_REGS->SPIDR2,SPI_SPIDAT2_DATA,0x0500); CSL_FINS(CSL_SPI_REGS->SPIDR1,SPI_SPIDAT1_DATA,0x0);
Please correct me if I am wrong about this issue.
Regards.
Ekrem.
Hi,
Thank you for bringing our attention to this oversight. You are correct that the SPI User's Guide refers to Data Register 1 and 2 as SPIDAT1 and SPIDAT2 where as the CSL refers to them as SPIDR1 and SPIDR2. We will take the appropriate corrective measures.
Regards,
Sunil Kamath
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.