aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-25 08:10:14 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-25 08:10:14 +0000
commitfeff330174db933f240b7293d3ce10a9c9362cf9 (patch)
tree86d5252624a0441f729f757ddc64b478014ce0c8 /os/hal/ports
parent36786ebeeaed6f6abd5305681236906843681e58 (diff)
downloadChibiOS-feff330174db933f240b7293d3ce10a9c9362cf9.tar.gz
ChibiOS-feff330174db933f240b7293d3ce10a9c9362cf9.tar.bz2
ChibiOS-feff330174db933f240b7293d3ce10a9c9362cf9.zip
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
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/STM32F4xx/hal_lld.c2
1 files changed, 1 insertions, 1 deletions
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))