From feff330174db933f240b7293d3ce10a9c9362cf9 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 25 Apr 2016 08:10:14 +0000 Subject: Reversed switch for STM32F4 revision A workaround, now the fix is included by default. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9355 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F4xx/hal_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.c b/os/hal/ports/STM32/STM32F4xx/hal_lld.c index e22da8ca9..7f02aaa30 100644 --- a/os/hal/ports/STM32/STM32F4xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.c @@ -249,7 +249,7 @@ void stm32_clock_init(void) { STM32_HPRE; /* Flash setup.*/ -#if defined(STM32_USE_REVISION_A_FIX) +#if !defined(STM32_REMOVE_REVISION_A_FIX) /* Some old revisions of F4x MCUs randomly crashes with compiler optimizations enabled AND flash caches enabled. */ if ((DBGMCU->IDCODE == 0x20006411) && (SCB->CPUID == 0x410FC241)) -- cgit v1.2.3