├── .github └── workflows │ └── build.yaml ├── .gitignore ├── .gitmodules ├── LICENSE ├── Makefile ├── README.md ├── src └── main.c └── vendor ├── 50-wch.rules ├── Core ├── core_riscv.c └── core_riscv.h ├── Debug ├── debug.c └── debug.h ├── Ld └── Link.ld ├── Peripheral ├── inc │ ├── ch32v00x.h │ ├── ch32v00x_adc.h │ ├── ch32v00x_dbgmcu.h │ ├── ch32v00x_dma.h │ ├── ch32v00x_exti.h │ ├── ch32v00x_flash.h │ ├── ch32v00x_gpio.h │ ├── ch32v00x_i2c.h │ ├── ch32v00x_iwdg.h │ ├── ch32v00x_misc.h │ ├── ch32v00x_opa.h │ ├── ch32v00x_pwr.h │ ├── ch32v00x_rcc.h │ ├── ch32v00x_spi.h │ ├── ch32v00x_tim.h │ ├── ch32v00x_usart.h │ └── ch32v00x_wwdg.h └── src │ ├── ch32v00x_adc.c │ ├── ch32v00x_dbgmcu.c │ ├── ch32v00x_dma.c │ ├── ch32v00x_exti.c │ ├── ch32v00x_flash.c │ ├── ch32v00x_gpio.c │ ├── ch32v00x_i2c.c │ ├── ch32v00x_iwdg.c │ ├── ch32v00x_misc.c │ ├── ch32v00x_opa.c │ ├── ch32v00x_pwr.c │ ├── ch32v00x_rcc.c │ ├── ch32v00x_spi.c │ ├── ch32v00x_tim.c │ ├── ch32v00x_usart.c │ └── ch32v00x_wwdg.c ├── Startup └── startup_ch32v00x.S ├── User ├── ch32v00x_conf.h ├── ch32v00x_it.c ├── ch32v00x_it.h ├── system_ch32v00x.c └── system_ch32v00x.h └── wch-riscv.cfg /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | *.map 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/README.md -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/src/main.c -------------------------------------------------------------------------------- /vendor/50-wch.rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/50-wch.rules -------------------------------------------------------------------------------- /vendor/Core/core_riscv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Core/core_riscv.c -------------------------------------------------------------------------------- /vendor/Core/core_riscv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Core/core_riscv.h -------------------------------------------------------------------------------- /vendor/Debug/debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Debug/debug.c -------------------------------------------------------------------------------- /vendor/Debug/debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Debug/debug.h -------------------------------------------------------------------------------- /vendor/Ld/Link.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Ld/Link.ld -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_adc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_adc.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_dbgmcu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_dbgmcu.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_dma.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_dma.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_exti.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_exti.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_flash.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_gpio.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_i2c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_i2c.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_iwdg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_iwdg.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_misc.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_opa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_opa.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_pwr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_pwr.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_rcc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_rcc.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_spi.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_tim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_tim.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_usart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_usart.h -------------------------------------------------------------------------------- /vendor/Peripheral/inc/ch32v00x_wwdg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/inc/ch32v00x_wwdg.h -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_adc.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_dbgmcu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_dbgmcu.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_dma.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_exti.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_flash.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_gpio.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_i2c.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_iwdg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_iwdg.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_misc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_misc.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_opa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_opa.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_pwr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_pwr.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_rcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_rcc.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_spi.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_tim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_tim.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_usart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_usart.c -------------------------------------------------------------------------------- /vendor/Peripheral/src/ch32v00x_wwdg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Peripheral/src/ch32v00x_wwdg.c -------------------------------------------------------------------------------- /vendor/Startup/startup_ch32v00x.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/Startup/startup_ch32v00x.S -------------------------------------------------------------------------------- /vendor/User/ch32v00x_conf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/User/ch32v00x_conf.h -------------------------------------------------------------------------------- /vendor/User/ch32v00x_it.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/User/ch32v00x_it.c -------------------------------------------------------------------------------- /vendor/User/ch32v00x_it.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/User/ch32v00x_it.h -------------------------------------------------------------------------------- /vendor/User/system_ch32v00x.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/User/system_ch32v00x.c -------------------------------------------------------------------------------- /vendor/User/system_ch32v00x.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/User/system_ch32v00x.h -------------------------------------------------------------------------------- /vendor/wch-riscv.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gregdavill/CH32V003-makefile-example/HEAD/vendor/wch-riscv.cfg --------------------------------------------------------------------------------