[NUCLEO_F302R8] Add automatic HSE/HSI clock configuration + change spi default pins

The clock configuration is first tried with external 8MHz clock, if fail
then tried with 8MHz xtal and finally with HSI.