E407/hal-spi.c: follow STM32 manual more closely; ensure we wait for SPI idle