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 | |
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')
-rw-r--r-- | os/hal/ports/STM32/STM32F37x/stm32_rcc.h | 21 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32F3xx/stm32_rcc.h | 8 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32F7xx/stm32_rcc.h | 4 |
3 files changed, 24 insertions, 9 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. */
/*===========================================================================*/
diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h index 1c1d4fc19..cf043bfa1 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h @@ -796,11 +796,9 @@ /**
* @brief Disables the HRTIM1 peripheral clock.
*
- * @param[in] lp low power enable flag
- *
* @api
*/
-#define rccDisableHRTIM1(lp) rccDisableAPB2(RCC_APB2ENR_HRTIM1EN, lp)
+#define rccDisableHRTIM1(lp) rccDisableAPB2(RCC_APB2ENR_HRTIM1EN)
/**
* @brief Resets the HRTIM1 peripheral.
@@ -998,11 +996,9 @@ /**
* @brief Disables the CRC peripheral clock.
*
- * @param[in] lp low power enable flag
- *
* @api
*/
-#define rccDisableCRC(lp) rccDisableAHB(RCC_AHBENR_CRCEN)
+#define rccDisableCRC() rccDisableAHB(RCC_AHBENR_CRCEN)
/** @} */
/*===========================================================================*/
diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h index 44876d18f..6b110b146 100644 --- a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h @@ -1527,11 +1527,9 @@ /**
* @brief Disables the CRC peripheral clock.
*
- * @param[in] lp low power enable flag
- *
* @api
*/
-#define rccDisableCRC(lp) rccDisableAHB1(RCC_AHB1ENR_CRCEN)
+#define rccDisableCRC() rccDisableAHB1(RCC_AHB1ENR_CRCEN)
/**
* @brief Resets the CRC peripheral.
|