EFI_CONFIGURATION_STORAGE

This commit is contained in:
rusefi 2024-05-05 15:38:21 -04:00
parent 40ec18eeb4
commit 217546b02d
3 changed files with 6 additions and 4 deletions

View File

@ -341,9 +341,9 @@ void requestBurn() {
#if !EFI_UNIT_TEST
onBurnRequest();
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
#if EFI_CONFIGURATION_STORAGE
setNeedToWriteConfiguration();
#endif /* (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE) */
#endif /* EFI_CONFIGURATION_STORAGE */
#endif // !EFI_UNIT_TEST
}

View File

@ -42,6 +42,8 @@
#define EXPECTED_REMAINING_STACK 128
#define EFI_CONFIGURATION_STORAGE (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
// see also validateStack
#define hasLotsOfRemainingStack() (getCurrentRemainingStack() > EXPECTED_REMAINING_STACK)

View File

@ -212,9 +212,9 @@ static void doPeriodicSlowCallback() {
*
* todo: allow writing if 2nd bank of flash is used
*/
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
#if EFI_CONFIGURATION_STORAGE
writeToFlashIfPending();
#endif /* (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE) */
#endif /* EFI_CONFIGURATION_STORAGE */
}
#else /* if EFI_SHAFT_POSITION_INPUT */
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)