diff options
Diffstat (limited to 'src/stm32/dfu_reboot.c')
-rw-r--r-- | src/stm32/dfu_reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/dfu_reboot.c b/src/stm32/dfu_reboot.c index 68f023d1..2b98e0da 100644 --- a/src/stm32/dfu_reboot.c +++ b/src/stm32/dfu_reboot.c @@ -36,7 +36,7 @@ dfu_reboot(void) irq_disable(); uint64_t *bflag = (void*)USB_BOOT_FLAG_ADDR; *bflag = USB_BOOT_FLAG; -#if CONFIG_MACH_STM32H7 +#if __CORTEX_M >= 7 SCB_CleanDCache_by_Addr((void*)bflag, sizeof(*bflag)); #endif NVIC_SystemReset(); |