Initial Stm32f4 spi driver

I would suggest to take the port out of the picture here. Just power on the SPI device and do the enabling of the port in the init functions...