mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 02:21:32 +08:00
[bsp][stm32][drv_crypto] Enable RNG Clock
This commit is contained in:
parent
73236a825c
commit
4171fcbb06
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user