Software › Blink PC13 (on-board LED)
Blink PC13 (on-board LED)
demo Open · freely redistributable
An original CC0 bare-metal STM32F103 program written for emulators.org and compiled with clang for thumbv7m (ARM Cortex-M3). It enables the GPIOC clock in RCC (APB2ENR), configures PC13 as a push-pull output in CRH, and toggles the on-board LED with the atomic BSRR/BRR set/reset registers in a busy-wait loop. PC13 is active-low, so the LED lights when the pin is driven low. Real STM32 register path, no runtime.
Format: STM32F103 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)