While attempting to configure the SDSPI driver to use SSI1 on a Tiva Tm4C1294NCPDT, I ran into a couple of problems.
The driver assumes that the SCK, MOSI, and MISO signals are all on the same port. On the part in question, the clock is on PB5 while MOSI and MISO are on port E. How does one initialize the HWAttrs structure correctly to handle this situation? Looking at the driver code, the structure appears to only be used to initialize the direction of the I/O pins. Can I do this manually before or after calling SDSPI_init() to accomplish the same result?
I'm unclear on purpose of the portTx/PinTx fields. The code shows them being used to send the initial clock train, but only to set the pin high. When it comes time to restore the pin to its peripheral functionality, it resorts back to using portSPI/pinMOSI. What is even more confusing is the example in EK_TM4C1294XL.c. In that file for SSI2, PortSPI/pinMOSI are set to PD1, but portTx/pinTx are set to PB1. But the example works as is. Any guidance would be appreciated.