firmware setup

This commit is contained in:
Alessandro Mauri 2026-03-25 18:47:44 +01:00
parent ab1063aa27
commit d79565b10d
6 changed files with 27 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "fw/ch32fun"]
path = fw/ch32fun
url = https://github.com/cnlohr/ch32fun

3
fw/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.zen
.vscode
.ccls-cache

9
fw/Makefile Normal file
View 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
View File

@ -0,0 +1,6 @@
#include <ch32fun.h>
int main(void) {
while(true);
return 0;
}

1
fw/ch32fun Submodule

@ -0,0 +1 @@
Subproject commit cfffff6d6bd9bd97d7348d044a1de145f4548072

5
fw/funconfig.h Normal file
View File

@ -0,0 +1,5 @@
#ifndef _FUNCONFIG_H
#define _FUNCONFIG_H
#endif