[NUCLEO_F302R8] Migration to STM32Cube driver.

Actual code is based on the Standard Peripherals Library.