Skip to content

Commit 08f9e80

Browse files
committed
STM32L4 TRNG:Remove trng clock setting for L4 devices
This will be done in the system_clock.c file instead.
1 parent 3c0d6f0 commit 08f9e80

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

targets/TARGET_STM/trng_api.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ void trng_init(trng_t *obj)
3737
error("Only 1 RNG instance supported\r\n");
3838
}
3939

40-
#if defined(TARGET_STM32L4)
41-
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
42-
43-
/*Select PLLQ output as RNG clock source */
44-
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
45-
PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_PLL;
46-
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
47-
#endif
48-
4940
/* RNG Peripheral clock enable */
5041
__HAL_RCC_RNG_CLK_ENABLE();
5142

0 commit comments

Comments
 (0)