// The GPIO port A pin numbers for the various SSI signals. // #define SSI_CS GPIO_PIN_3 #define SSI_CLK GPIO_PIN_2 #define SSI_TX GPIO_PIN_5 #define SSI_RX GPIO_PIN_4 // Set the clocking to run directly from the crystal. // SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_6MHZ); // Enable the peripherals used by this example. // SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); // Configure the appropriate pins to be SSI instead of GPIO. Note that // the chip select is kept as a GPIO to guarantee the appropriate // signalling to the Atmel device. // GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, SSI_CS); GPIOPinWrite(GPIO_PORTA_BASE, SSI_CS, SSI_CS); GPIOPinTypeSSI(GPIO_PORTA_BASE, SSI_CLK | SSI_TX | SSI_RX); // // Configure and enable the SSI port for master mode. // SSIConfigSetExpClk(SSI0_BASE, SysCtlClockGet(), SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 1000000, 16); SSIEnable(SSI0_BASE);