workin spi master/slave for stm32f0discovery