Initial Stm32f4 spi driver

you need to add a `default:` in the line before `return -1`, otherwise the `return -1` is dead code...