diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-02 10:33:46 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-02 10:33:46 +0000 |
commit | 3052c204fd97ffe188206f6bc575cecfdb358b9c (patch) | |
tree | 7c501d15f140d65de7fa26a2cb1aac9d822e5650 /os/hal/ports/STM32/STM32F37x | |
parent | 241e03a2056224282e880f66ed02b707997dc868 (diff) | |
download | ChibiOS-3052c204fd97ffe188206f6bc575cecfdb358b9c.tar.gz ChibiOS-3052c204fd97ffe188206f6bc575cecfdb358b9c.tar.bz2 ChibiOS-3052c204fd97ffe188206f6bc575cecfdb358b9c.zip |
Various fixes submitted by pl4nkton.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11426 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F37x')
-rw-r--r-- | os/hal/ports/STM32/STM32F37x/stm32_rcc.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F37x/stm32_rcc.h b/os/hal/ports/STM32/STM32F37x/stm32_rcc.h index 600b70728..6cf48250f 100644 --- a/os/hal/ports/STM32/STM32F37x/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F37x/stm32_rcc.h @@ -975,6 +975,27 @@ #define rccResetUSB() rccResetAPB1(RCC_APB1RSTR_USBRST)
/** @} */
+/**
+ * @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.
+ *
+ * @api
+ */
+#define rccDisableCRC() rccDisableAHB(RCC_AHBENR_CRCEN)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|