diff options
-rw-r--r-- | os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | 8 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 10 insertions, 0 deletions
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).
|