To turn on an LED, you don't call a function like digitalWrite() (unless you use a library). You write a 32-bit value to a specific address. For example, to set PA5 high on GPIO Port A:
There are pros and cons to each type of scheduler the stm32f103 arm microcontroller and embedded systems work
If you outgrow the F103, you can easily migrate to more powerful STM32 chips (like the F4 or H7 series). To turn on an LED, you don't call