aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-04-25 08:16:55 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-04-25 08:16:55 +0000
commit2dc9bb8ed42c4128fb6c5677792182923951342d (patch)
tree50eaf3ae0fe7ac41ddb3c54ea61a5919285dacc3
parente4ea2c6429f76cf6042d40530c61afd98672a29a (diff)
downloadChibiOS-2dc9bb8ed42c4128fb6c5677792182923951342d.tar.gz
ChibiOS-2dc9bb8ed42c4128fb6c5677792182923951342d.tar.bz2
ChibiOS-2dc9bb8ed42c4128fb6c5677792182923951342d.zip
Added CRC RCC macros.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10180 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/STM32/STM32F4xx/stm32_rcc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
index 503cf1bae..480f69bee 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
@@ -1581,6 +1581,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, lp)
+
+/**
+ * @brief Resets the CRC peripheral.
+ *
+ * @api
+ */
+#define rccResetCRC() rccResetAHB1(RCC_AHB1RSTR_CRCRST)
+/** @} */
+
+/**
* @name FSMC peripherals specific RCC operations
* @{
*/