Some examples for the STM32F4-Disco board
The SPI-MEMS example, its not great but it does use the SPI
port and can tell you the temperature of the room you are in.