diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-20 14:44:47 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-20 14:44:47 +0000 |
commit | dfc49fe0de241bdf5cb89993487a0c6c3c81a12c (patch) | |
tree | 2baa255a98be8b4b7da0a316941244b00cb4946e /os/hal/ports/STM32/STM32F3xx | |
parent | 2034387839d35e843040c5b8895aa39ae3ff5f61 (diff) | |
download | ChibiOS-dfc49fe0de241bdf5cb89993487a0c6c3c81a12c.tar.gz ChibiOS-dfc49fe0de241bdf5cb89993487a0c6c3c81a12c.tar.bz2 ChibiOS-dfc49fe0de241bdf5cb89993487a0c6c3c81a12c.zip |
Added CRC unit to RCC support files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11363 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F3xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F3xx/stm32_rcc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h index 9761c6782..cd209baef 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h @@ -949,6 +949,29 @@ #define rccDisableFSMC() rccDisableAHB(RCC_AHBENR_FMCEN)
/** @} */
+/**
+ * @name CRC peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the CRC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableCRC(lp) rccEnableAHB(RCC_AHBENR_CRCEN, lp)
+
+/**
+ * @brief Disables the CRC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableCRC(lp) rccDisableAHB(RCC_AHBENR_CRCEN)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|