Merge pull request #1809 from cconlon/stm32rngfix

enable RNG clock when WOLFSSL_STM32F427_RNG is defined
This commit is contained in:
David Garske
2018-09-04 17:21:01 -07:00
committed by GitHub

View File

@@ -1620,6 +1620,9 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
int i;
(void)os;
/* enable RNG peripheral clock */
RCC->AHB2ENR |= RCC_AHB2ENR_RNGEN;
/* enable RNG interrupt, set IE bit in RNG->CR register */
RNG->CR |= RNG_CR_IE;