project start

This commit is contained in:
Alessandro Mauri 2026-04-06 00:06:45 +02:00
parent 821380d21c
commit 6bc4087474
4 changed files with 11 additions and 12 deletions

3
fw/.gitignore vendored
View File

@ -6,4 +6,5 @@
*.lst
*.map
*.elf
*.hex
*.hex
compile_commands.json

View File

@ -1,6 +1,6 @@
all : flash
all : build
TARGET:=blink
TARGET:=main
TARGET_MCU:=CH32X035
include ch32fun/ch32fun/ch32fun.mk

View File

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

7
fw/main.c Normal file
View File

@ -0,0 +1,7 @@
#include <ch32fun.h>
__attribute__((noreturn)) int main(void)
{
while (1) {
}
}