From 6ff271b322c74e8cd3f5d988cc35bd0de9ee33ed Mon Sep 17 00:00:00 2001 From: bcostm Date: Mon, 26 Nov 2018 11:12:30 +0100 Subject: [PATCH] STM32L4 TRNG:Remove trng clock setting for L4 devices This will be done in the system_clock.c file instead. --- targets/TARGET_STM/trng_api.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/targets/TARGET_STM/trng_api.c b/targets/TARGET_STM/trng_api.c index f85dae2bd7..cffe7a6177 100644 --- a/targets/TARGET_STM/trng_api.c +++ b/targets/TARGET_STM/trng_api.c @@ -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();