project start
This commit is contained in:
parent
821380d21c
commit
6bc4087474
4 changed files with 11 additions and 12 deletions
1
fw/.gitignore
vendored
1
fw/.gitignore
vendored
|
|
@ -7,3 +7,4 @@
|
||||||
*.map
|
*.map
|
||||||
*.elf
|
*.elf
|
||||||
*.hex
|
*.hex
|
||||||
|
compile_commands.json
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
all : flash
|
all : build
|
||||||
|
|
||||||
TARGET:=blink
|
TARGET:=main
|
||||||
TARGET_MCU:=CH32X035
|
TARGET_MCU:=CH32X035
|
||||||
|
|
||||||
include ch32fun/ch32fun/ch32fun.mk
|
include ch32fun/ch32fun/ch32fun.mk
|
||||||
|
|
|
||||||
|
|
@ -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
7
fw/main.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <ch32fun.h>
|
||||||
|
|
||||||
|
__attribute__((noreturn)) int main(void)
|
||||||
|
{
|
||||||
|
while (1) {
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue