Like usart, create configuration header for SPI to prepare implementation for STM32F1 boards.
Fix uart callback parameter type in SPI example.