stm32: memset returns correct value, spi driver mod for F1 family