Move HAL_Init call for F3/F4/F7/H7.
commit9054cd45bfaceb593569cc54dea994d67405d3c7
authorDominic Clifton <dominic.clifton@cleanflight.com>
Wed, 20 Feb 2019 17:40:52 +0000 (20 18:40 +0100)
committerDominic Clifton <dominic.clifton@cleanflight.com>
Fri, 28 Jun 2019 10:33:54 +0000 (28 12:33 +0200)
tree40ea1fb0b3e3f8b7e8507136e13142e14f1b9212
parent3695b123d961a5090797eaa265b0f85f585fb320
Move HAL_Init call for F3/F4/F7/H7.

* HAL_Delay() was being used before HAL_Init() was called.
* Brings it in-line with ST examples which follow this call order:
CubeMX generated code goes startup_xxx.s (asm) -> SystemInit(), then
main(), HAL_Init(), SystemClock_Config()

Boot-tested on:
* SPRacingF4NEO
* SPRacingF7DUAL
* SPRacingH7ZERO
src/main/fc/init.c
src/main/startup/system_stm32f30x.c
src/main/startup/system_stm32f4xx.c
src/main/startup/system_stm32f7xx.c
src/main/startup/system_stm32h7xx.c