Initial Stm32f4 spi driver

This seems to be problematic, what if speed = 0xfff? I think we should consider pre-defining a set of SPI speed values in the spi-header, then you could implement it with a simple switch-case. What do you think?