Init order h7 (#2495)

* init order

* s
This commit is contained in:
Matthew Kennedy 2021-03-25 18:12:19 -07:00 committed by GitHub
parent e7078a8570
commit 0f0d8f6339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -191,14 +191,12 @@ void runRusEfi(void) {
*/
initDataStructures(PASS_ENGINE_PARAMETER_SIGNATURE);
// Perform hardware initialization that doesn't need configuration
initHardwareNoConfig(&sharedLogger);
// Read configuration from flash memory
loadConfiguration(&sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
#if EFI_FILE_LOGGING
initMmcCard();
#endif /* EFI_FILE_LOGGING */
#if EFI_USB_SERIAL
startUsbConsole();
#endif
@ -217,6 +215,10 @@ void runRusEfi(void) {
*/
initHardware();
#if EFI_FILE_LOGGING
initMmcCard();
#endif /* EFI_FILE_LOGGING */
#if HW_CHECK_ALWAYS_STIMULATE
// we need a special binary for final assembly check. We cannot afford to require too much software or too many steps
// to be executed at the place of assembly