I’ve been using SSI for SPI communications with both the LM3S9B92 and LM4F232H5QD. As part of the SSI pin configuration, I have the following lines of code:
MAP_GPIOPinConfigure(GPIO_PA2_SSI0CLK);
MAP_GPIOPinConfigure(GPIO_PA3_SSI0FSS);
MAP_GPIOPinConfigure(GPIO_PA4_SSI0RX);
MAP_GPIOPinConfigure(GPIO_PA5_SSI0TX);
When either PART_LM3S9B92 or PART_LM4F232H5QD is defined in the Code Composer project, the above defines used as arguments to the GPIOPinConfigure function are found in the pin_map.h file in the following form:
#define GPIO_PA2_SSI0CLK 0x00000801
#define GPIO_PA2_PWM4 0x00000804
#define GPIO_PA2_I2S0RXSD 0x00000809
and everything works fine.
I’m now trying to use the SSI for SPI communications with the LM3S1968 part. But when PART_LM3S1968 is defined in the Code Composer project, the above GPIOPinConfigure arguments are not available in the pin_map.h file. Rather, the available defines are of this form:
#define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
#define SSI0CLK_PORT GPIO_PORTA_BASE
#define SSI0CLK_PIN GPIO_PIN_2
and I’m unable to use GPIOPinConfigure to configure the SSI pins.
Where can I find some GPIOPinConfigure appropriate defines for this part? Do I need to build my own? Do I need to use HWREG commands? All the SSI/SPI examples I’ve seen use GPIOPinConfigure for the SSI pin configuration.
I have a similar problem for the UART and QEI pin configuration.