I'm trying to do a bare metal setup for a STM32F303K8 and am trying to understand how STM ADCx_INx pins are connected/routed to an ADC. Is there a multiplexer that is setup to "gate" one of the the many ADC INx pins to a ADC?
In particular which registers do I manually configure, for example, to connect ADC2_IN4 to the ADC2. I'm assuming I would first set the pin to analog using the MODER register. But what register should I do next? My goal is to do a reading on one pin one time.
Thanks for any direction.