mspi: fix build failure under assertion disable

This commit is contained in:
Armando 2023-03-21 10:14:59 +08:00
parent bb9200acec
commit eee34bcf70
2 changed files with 10 additions and 0 deletions

View File

@ -238,6 +238,7 @@ static inline mspi_timing_ll_flash_mode_t mspi_timing_ll_get_flash_mode(uint8_t
return MSPI_TIMING_LL_FLASH_SLOW_MODE;
default:
HAL_ASSERT(false);
return 0;
}
}

View File

@ -0,0 +1,9 @@
# Any of a set of configurations that will trigger timing tuning
CONFIG_IDF_TARGET="esp32s3"
CONFIG_ESPTOOLPY_FLASHFREQ_120M=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y