Software › Blink PA0/PA1 (user LEDs)
Blink PA0/PA1 (user LEDs)
demo Open · freely redistributable
An original CC0 bare-metal WCH CH32V307 program written for emulators.org and compiled with clang for rv32imac (QingKe V4F). It enables the GPIOA clock in RCC (APB2PCENR), configures PA0 and PA1 as push-pull outputs, and toggles the two on-board LEDs in anti-phase with the atomic BSHR/BCR set/reset registers in a busy-wait loop. The LEDs are active-high. Real CH32V307 register path, no runtime.
Format: CH32V307 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)