STM32 Tutorial #2 : LED ON/OFF | GPIO Register Programming Explained
Which registers decide whether PC6 actually drives an LED high or low?
Follow the schematic to the LED on PC6, then trace the register writes that turn it on. Enabling the GPIOC clock, selecting output mode and choosing the pin’s output type each control a different part of the path.