Pick a chip. Configure peripherals. Get real init code.
Code is generated from each family's actual peripheral library conventions — StdPeriph-style for CH32V, the CH5xx_common.h BLE SDK style for CH57x/58x/59x — not a generic template. Verify pin availability against your exact package before flashing.