From 33b18fd62ba73c90054a7b94b68c341bb3f40d9a Mon Sep 17 00:00:00 2001 From: Frederic Morin Date: Sun, 5 Mar 2023 19:15:43 -0500 Subject: stm32f7: add support for stm32f7 and remram board Signed-off-by: Frederic Morin --- src/stm32/dfu_reboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stm32/dfu_reboot.c') 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(); -- cgit v1.2.3-70-g09d2