From bc9cab83df68099f7e9294a89bb09643c38a90ea Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 26 Nov 2020 10:19:46 +0000 Subject: [PATCH] More bug #1134. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@13923 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32H7xx/stm32_rcc.h | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h index 941b5b272..2a6852a39 100644 --- a/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h @@ -489,6 +489,62 @@ #define rccResetADC3() rccResetAHB4(RCC_AHB4RSTR_ADC3RST) /** @} */ +/** + * @name CRYP peripheral specific RCC operations + * @{ + */ +/** + * @brief Enables the CRYP peripheral clock. + * + * @param[in] lp low power enable flag + * + * @api + */ +#define rccEnableCRYP(lp) rccEnableAHB2(RCC_AHB2ENR_CRYPEN, lp) + +/** + * @brief Disables the CRYP peripheral clock. + * + * @api + */ +#define rccDisableCRYP() rccDisableAHB2(RCC_AHB2ENR_CRYPEN) + +/** + * @brief Resets the CRYP peripheral. + * + * @api + */ +#define rccResetCRYP() rccResetAHB2(RCC_AHB2RSTR_CRYPRST) +/** @} */ + +/** + * @name HASH peripheral specific RCC operations + * @{ + */ +/** + * @brief Enables the HASH peripheral clock. + * + * @param[in] lp low power enable flag + * + * @api + */ +#define rccEnableHASH(lp) rccEnableAHB2(RCC_AHB2ENR_HASHEN, lp) + +/** + * @brief Disables the HASH peripheral clock. + * + * @api + */ +#define rccDisableHASH() rccDisableAHB2(RCC_AHB2ENR_HASHEN) + +/** + * @brief Resets the HASH peripheral. + * + * @api + */ +#define rccResetHASH() rccResetAHB2(RCC_AHB2RSTR_HASHRST) +/** @} */ + /** * @name DAC peripheral specific RCC operations * @{