aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-20 14:44:47 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-20 14:44:47 +0000
commitdfc49fe0de241bdf5cb89993487a0c6c3c81a12c (patch)
tree2baa255a98be8b4b7da0a316941244b00cb4946e /os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
parent2034387839d35e843040c5b8895aa39ae3ff5f61 (diff)
downloadChibiOS-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/STM32F7xx/stm32_rcc.h')
-rw-r--r--os/hal/ports/STM32/STM32F7xx/stm32_rcc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
index 90b3e7828..44876d18f 100644
--- a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
@@ -1512,6 +1512,36 @@
/** @} */
/**
+ * @name CRC peripheral specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the CRC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableCRC(lp) rccEnableAHB1(RCC_AHB1ENR_CRCEN, lp)
+
+/**
+ * @brief Disables the CRC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableCRC(lp) rccDisableAHB1(RCC_AHB1ENR_CRCEN)
+
+/**
+ * @brief Resets the CRC peripheral.
+ *
+ * @api
+ */
+#define rccResetCRC() rccResetAHB1(RCC_AHB1RSTR_CRCRST)
+/** @} */
+
+/**
* @name FSMC peripherals specific RCC operations
* @{
*/