[bsp][stm32][drv_crypto] Enable RNG Clock

This commit is contained in:
Wu Han authored and guo committed 2022-05-09 11:13:01 +08:00
1 parent 73236a825c
commit 4171fcbb06
1 file changed
+1
@@ -395,6 +395,7 @@ static rt_err_t _crypto_create(struct rt_hwcrypto_ctx *ctx)
#if defined(BSP_USING_RNG)
case HWCRYPTO_TYPE_RNG:
{
__HAL_RCC_RNG_CLK_ENABLE();
RNG_HandleTypeDef *hrng = rt_calloc(1, sizeof(RNG_HandleTypeDef));
if (RT_NULL == hrng)
{