Fix reset for STM32 devices

This commit is contained in:
Fred Sundvik
2018-02-10 23:09:03 +02:00
committed by Jack Humbert
parent fca31693df
commit 8c2ae4a470
4 changed files with 23 additions and 21 deletions
@@ -62,13 +62,15 @@ const PALConfig pal_default_config = {
};
#endif
void enter_bootloader_mode_if_requested(void);
/**
* @brief Early initialization code.
* @details This initialization must be performed just after stack setup
* and before any other initialization.
*/
void __early_init(void) {
enter_bootloader_mode_if_requested();
stm32_clock_init();
}