I assume PINMUX3_27_24_GPIO8_2 is 4. That would mux in GP8[2]. The GPIO driver appears to use a 1 based numbering so GP8[2] should be have a pin number of 8x16+1 = 131. So your code looks good so far. The SPI driver code does not seem to set up the GPIO. You'll need to call Gpio_setPinDir() before hand. Sorry, that's all I got. My experience is with using the SPI CS (not GPIO). Hopefully somebody at TI can point you to a code example.
↧