firmware setup
This commit is contained in:
parent
ab1063aa27
commit
d79565b10d
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "fw/ch32fun"]
|
||||||
|
path = fw/ch32fun
|
||||||
|
url = https://github.com/cnlohr/ch32fun
|
||||||
3
fw/.gitignore
vendored
Normal file
3
fw/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.zen
|
||||||
|
.vscode
|
||||||
|
.ccls-cache
|
||||||
9
fw/Makefile
Normal file
9
fw/Makefile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
all : flash
|
||||||
|
|
||||||
|
TARGET:=blink
|
||||||
|
TARGET_MCU:=CH32X035
|
||||||
|
|
||||||
|
include ch32fun/ch32fun/ch32fun.mk
|
||||||
|
|
||||||
|
flash : cv_flash
|
||||||
|
clean : cv_clean
|
||||||
6
fw/blink.c
Normal file
6
fw/blink.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <ch32fun.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
while(true);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
1
fw/ch32fun
Submodule
1
fw/ch32fun
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit cfffff6d6bd9bd97d7348d044a1de145f4548072
|
||||||
5
fw/funconfig.h
Normal file
5
fw/funconfig.h
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#ifndef _FUNCONFIG_H
|
||||||
|
#define _FUNCONFIG_H
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user