Verison 1.0.3 Release

Based on Buildbotics 0.4.14
This commit is contained in:
OneFinityCNC
2020-08-27 23:20:27 -04:00
parent 6137475077
commit 24dfa6c64d
302 changed files with 58865 additions and 0 deletions

40
src/avr/Makefile Normal file
View File

@@ -0,0 +1,40 @@
# Makefile for the project Bulidbotics firmware
PROJECT = bbctrl-avr-firmware
MCU = atxmega192a3u
CLOCK = 32000000
# SRC
SRC = $(wildcard src/*.c) $(wildcard src/*.cpp) $(wildcard src/vfd/*.c)
OBJ := $(patsubst src/%.c,build/%.o,$(SRC))
OBJ := $(patsubst src/%.cpp,build/%.o,$(OBJ))
OBJ := $(patsubst src/vfd/%.c,build/vfd/%.o,$(OBJ))
JSON = vars command messages
JSON := $(patsubst %,build/%.json,$(JSON))
all: $(PROJECT).hex $(JSON) size
include Makefile.common
CFLAGS += -Isrc
# Build
$(PROJECT).elf: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
# JSON
build/%.json: src/%.json.in src/%.def
cpp -Isrc $< | sed "/^#.*$$/d;s/'\(.\)'/\"\1\"/g" > $@
# Program
init:
$(MAKE) erase
-$(MAKE) fuses
$(MAKE) fuses
$(MAKE) program-boot
$(MAKE) program
program-boot:
$(MAKE) -C ../boot program
.PHONY: all init program-boot