From abda3392d621ddb49fedced945438955609c8955 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 12 May 2019 15:16:59 +0000 Subject: Fixed bug #1029. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12790 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | 8 ++++++++ readme.txt | 2 ++ 2 files changed, 10 insertions(+) diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h index e4eb67a2a..cc401ce05 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h @@ -429,14 +429,22 @@ * * @api */ +#ifdef RCC_AHB1ENR_BKPSRAMEN #define rccEnableBKPSRAM(lp) rccEnableAHB1(RCC_AHB1ENR_BKPSRAMEN, lp) +#else +#define rccEnableBKPSRAM(lp) +#endif /** * @brief Disables the BKPSRAM peripheral clock. * * @api */ +#ifdef RCC_AHB1ENR_BKPSRAMEN #define rccDisableBKPSRAM() rccDisableAHB1(RCC_AHB1ENR_BKPSRAMEN) +#else +#define rccDisableBKPSRAM() +#endif /** @} */ /** diff --git a/readme.txt b/readme.txt index 869e048c9..beb7f4a62 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,8 @@ ***************************************************************************** *** 19.1.3 *** +- FIX: Fixed RCC_AHB1ENR_BKPSRAMEN not present in all STMF4xx devices + (bug #1029). - FIX: Fixed MPU fix #1027 broke stack checking on Cortex-M devices without MPU (bug #1028). -- cgit v1.2.3