[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)
|
#if defined(BSP_USING_RNG)
|
||||||
case HWCRYPTO_TYPE_RNG:
|
case HWCRYPTO_TYPE_RNG:
|
||||||
{
|
{
|
||||||
|
__HAL_RCC_RNG_CLK_ENABLE();
|
||||||
RNG_HandleTypeDef *hrng = rt_calloc(1, sizeof(RNG_HandleTypeDef));
|
RNG_HandleTypeDef *hrng = rt_calloc(1, sizeof(RNG_HandleTypeDef));
|
||||||
if (RT_NULL == hrng)
|
if (RT_NULL == hrng)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user