aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-02-14 17:05:42 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-02-14 17:05:42 +0000
commitb1b94e5bdf4eb998bbfe907e1de1d4e1c965b503 (patch)
tree9c31227a44afe71a6cd40d62a794dd69892decc2
parent611cd24577d288f2136176f952d65b92238d6766 (diff)
downloadChibiOS-b1b94e5bdf4eb998bbfe907e1de1d4e1c965b503.tar.gz
ChibiOS-b1b94e5bdf4eb998bbfe907e1de1d4e1c965b503.tar.bz2
ChibiOS-b1b94e5bdf4eb998bbfe907e1de1d4e1c965b503.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8894 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/STM32/STM32F4xx/stm32_rcc.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
index d74d940fe..9db857cdc 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
@@ -1562,11 +1562,13 @@
*
* @api
*/
-#if STM32_FSMC_IS_FMC
+#if STM32_HAS_FSMC || defined(__DOXYGEN__)
+#if STM32_FSMC_IS_FMC || defined(__DOXYGEN__)
#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FMCEN, lp)
#else
#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FSMCEN, lp)
#endif
+#endif
/**
* @brief Disables the FSMC peripheral clock.
@@ -1575,22 +1577,26 @@
*
* @api
*/
-#if STM32_FSMC_IS_FMC
+#if STM32_HAS_FSMC || defined(__DOXYGEN__)
+#if STM32_FSMC_IS_FMC || defined(__DOXYGEN__)
#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FMCEN, lp)
#else
#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FSMCEN, lp)
#endif
+#endif
/**
* @brief Resets the FSMC peripheral.
*
* @api
*/
-#if STM32_FSMC_IS_FMC
+#if STM32_HAS_FSMC || defined(__DOXYGEN__)
+#if STM32_FSMC_IS_FMC || defined(__DOXYGEN__)
#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FMCRST)
#else
#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FSMCRST)
#endif
+#endif
/** @} */
/*===========================================================================*/