Hello there,
You can independently configure each GPIO pin (GPn) as either an input or an output using the GPIO direction registers. The GPIO direction register (DIR) specifies the direction of each GPIO signal. Logic 0 indicates the GPIO pin is configured as output, and logic 1 indicates input
GPIO capabilities may include:
1.GPIO pins can be configured to be input or output
2.GPIO pins can be enabled/disabled
3.input values are readable (typically high=1, low=0)
4.output values are writable/readable
5.input values can often be used as IRQs (typically for wakeup events)
6.the device can use DMA to move large quantities of data efficiently into or out of the device
The Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link de facto standard, named by Motorola, that operates in full duplex mode. Devices communicate in master/slave mode where the master device initiates the data frame. Multiple slave devices are allowed with individual slave select (chip select) lines. Sometimes SPI is called a four-wire serial bus, contrasting with three-, two-, and one-wire serial buses. SPI is often referred to as SSI (Synchronous Serial Interface).
Yes you can configure spi on GPIO .
Best regards,