cpu/stm32f4: Changed SPI return values to API definitions