Dear TI,
I have an EEPROM device connected to SPI port of Sitara.
The SPI driver API of MCU+ SDK 07.03.02 contains MCSPI_transfer function. This is good for simple commands like WREN, WRDI, RDSR, WRSR. But using it for READ and WRITE transfers is not efficient, because the command/address header part should be copied together with the data part.
Could you implement some new functions like:
i32 MCSPI_txtx(u8 *command, u32 commandSize, u8 *source, u32 sourceSize); /* SPI memory write */
i32 MCSPI_txrx(u8 *command, u32 commandSize, u8 *destination, u32 destinationSize); /* SPI memory read */
The command buffer would contain the command byte, the address bytes, dummy bytes (when necessary) independently from the data part.
Regards,
Kalman