diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-25 08:10:14 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-25 08:10:14 +0000 |
commit | feff330174db933f240b7293d3ce10a9c9362cf9 (patch) | |
tree | 86d5252624a0441f729f757ddc64b478014ce0c8 /os/hal/ports/STM32/STM32F4xx | |
parent | 36786ebeeaed6f6abd5305681236906843681e58 (diff) | |
download | ChibiOS-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/STM32/STM32F4xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F4xx/hal_lld.c | 2 |
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))
|