Question
STM32CubeG4: Wrong comment in HAL_RCC_DeInit()?
The function HAL_RCC_DeInit() in STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.c contains the following:
/* Clear CR register in 2 steps: first to clear HSEON in case bypass was enabled */
RCC->CR = RCC_CR_HSION;
/* Then again to HSEBYP in case bypass was enabled */
RCC->CR = RCC_CR_HSION;The comments suggest this clears HSEON, followed by HSEBYP.
However, the code appears to set the same value to CR register twice, RCC_CR_HSION.
Is the comment incorrect?
