Merge pull request #8867 from bcostm/fix_trng_clock_setting

STM32L4: fix trng clock setting
pull/9001/head
Cruz Monrreal 2018-12-06 21:27:02 -06:00 committed by GitHub
commit ea4a8e4f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -37,15 +37,6 @@ void trng_init(trng_t *obj)
error("Only 1 RNG instance supported\r\n");
}
#if defined(TARGET_STM32L4)
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
/*Select PLLQ output as RNG clock source */
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_PLL;
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
#endif
/* RNG Peripheral clock enable */
__HAL_RCC_RNG_CLK_ENABLE();