diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..87e284e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "fw/ch32fun"] + path = fw/ch32fun + url = https://github.com/cnlohr/ch32fun diff --git a/fw/.gitignore b/fw/.gitignore new file mode 100644 index 0000000..5484688 --- /dev/null +++ b/fw/.gitignore @@ -0,0 +1,3 @@ +.zen +.vscode +.ccls-cache diff --git a/fw/Makefile b/fw/Makefile new file mode 100644 index 0000000..5501eb8 --- /dev/null +++ b/fw/Makefile @@ -0,0 +1,9 @@ +all : flash + +TARGET:=blink +TARGET_MCU:=CH32X035 + +include ch32fun/ch32fun/ch32fun.mk + +flash : cv_flash +clean : cv_clean diff --git a/fw/blink.c b/fw/blink.c new file mode 100644 index 0000000..24f11e2 --- /dev/null +++ b/fw/blink.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + while(true); + return 0; +} diff --git a/fw/ch32fun b/fw/ch32fun new file mode 160000 index 0000000..cfffff6 --- /dev/null +++ b/fw/ch32fun @@ -0,0 +1 @@ +Subproject commit cfffff6d6bd9bd97d7348d044a1de145f4548072 diff --git a/fw/funconfig.h b/fw/funconfig.h new file mode 100644 index 0000000..d9342ae --- /dev/null +++ b/fw/funconfig.h @@ -0,0 +1,5 @@ +#ifndef _FUNCONFIG_H +#define _FUNCONFIG_H + +#endif +