STM32L4 TRNG:Remove trng clock setting for L4 devices

This will be done in the system_clock.c file instead.
pull/8867/head
bcostm 2018-11-26 11:12:30 +01:00
parent 3c0d6f0b0c
commit 08f9e80770
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();