How to enable on-board temperature sensor on STM32G491
On STM32G491 (and family) MCUs the on-board temperature sensor can be read by ADC1 or ADC5 to provide junction temperature.
RM0440 Rev 7 informs us:
In order to read the temperature sensor we must "wake" it from power-down mode by setting the VSENSESEL bit in the ADCx_CCR register. Two such registers exist which I assume to be: ADC12_CCR and ADC345_CCR.
I cannot find any documentation on how to do this and there does not seem to be any example projects.
How to enable this bit please?