From 2dc9bb8ed42c4128fb6c5677792182923951342d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 25 Apr 2017 08:16:55 +0000 Subject: Added CRC RCC macros. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10180 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'os/hal') 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 @@ -1580,6 +1580,36 @@ #define rccResetDMA2D() rccResetAHB1(RCC_AHB1RSTR_DMA2DRST) /** @} */ +/** + * @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 * @{ -- cgit v1.2.3