summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-05-06 14:25:46 +0200
committerJerzy Kasenberg <[email protected]>2020-05-06 14:25:46 +0200
commitd9e534f6f274d0d8b02a6258a55d6178517bd5fa (patch)
tree70689e6315a49d187d7cc5726675971ae249e573 /src
parent101f234a1637b995e771b4999afdf4793ffdc86e (diff)
stm32l476disco: fix uninitialized filed usage
Field PLLState was not initialized in RCC_OscInitStruct.PLL in function SystemClock_Config(). Value is used in HAL_RCC_OscConfig() regardless of oscillator. In lucky case value would be 0 RCC_PLL_NONE and nothing would happen. If value was incorrect following line would end up in assert: assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); If value was valid but no RCC_PLL_NONE pll could be configured with some other random values. Setting PLLState to RCC_PLL_NONE eliminates potential problem.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions