Example ported from the stm32f4 to stm32f3.