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 ++++++++ 1 file changed, 8 insertions(+) (limited to 'os') 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 /** @} */ /** -- cgit v1.2.3