From 7c53fca6c6d873f3d4490a25b3945b7ebb07f4d2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 7 May 2016 07:03:24 +0000 Subject: Added FSMC RCC declarations for F1 and F3. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9439 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F3xx/stm32_rcc.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'os/hal/ports/STM32/STM32F3xx') diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h index 7f5a172a2..9b92679e0 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h @@ -898,6 +898,29 @@ #define rccResetUSB() rccResetAPB1(RCC_APB1RSTR_USBRST) /** @} */ +/** + * @name FSMC peripherals specific RCC operations + * @{ + */ +/** + * @brief Enables the FMC peripheral clock. + * + * @param[in] lp low power enable flag + * + * @api + */ +#define rccEnableFSMC(lp) rccEnableAHB(RCC_AHBENR_FMCEN, lp) + +/** + * @brief Disables the FMC peripheral clock. + * + * @param[in] lp low power enable flag + * + * @api + */ +#define rccDisableFSMC(lp) rccDisableAHB(RCC_AHBENR_FMCEN, lp) +/** @} */ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ -- cgit v1.2.3