mirror of https://github.com/ARMmbed/mbed-os.git
STM32L4 TRNG:Remove trng clock setting for L4 devices
This will be done in the system_clock.c file instead.pull/8867/head
parent
3c0d6f0b0c
commit
08f9e80770
|
@ -37,15 +37,6 @@ void trng_init(trng_t *obj)
|
||||||
error("Only 1 RNG instance supported\r\n");
|
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 */
|
/* RNG Peripheral clock enable */
|
||||||
__HAL_RCC_RNG_CLK_ENABLE();
|
__HAL_RCC_RNG_CLK_ENABLE();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue