git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8894 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2016-02-14 17:05:42 +00:00
parent 611cd24577
commit b1b94e5bdf
1 changed files with 9 additions and 3 deletions

View File

@ -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
/** @} */
/*===========================================================================*/