CPUInfo: use HAL_XIP_ENABLED

This commit is contained in:
Andy Piper 2023-04-23 17:28:57 +01:00 committed by Andrew Tridgell
parent 26c59349d5
commit d04f8fe655
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ AP_ESC_Telem telem;
void setup() {
#ifdef DISABLE_CACHES
#if !defined(STM32H730xx) // can't disable DCache in memory-mapped mode
#if !HAL_XIP_ENABLED // can't disable DCache in memory-mapped mode
SCB_DisableDCache();
#endif
SCB_DisableICache();