Requirements:
- xpack riscv toolchain (riscv-none-embed-) (https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases)
Set up udev rules for WCH link
sudo cp ./50-wch.rules /etc/udev/rules.d
sudo udevadm control --reload-rules
Make project
make
Unless otherwise stated files are licensed as BSD 2-Clause
Files under vendor/
are from openwch (https://github.com/openwch/ch32v307) Licensed under Apache-2.0
Makefile is based on an example here: https://spin.atomicobject.com/2016/08/26/makefile-c-projects/
modify from greg's CH32V307 makefile project https://github.com/gregdavill/CH32V307-makefile-example.git