forked from cinderblock/3-Phase-Controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (47 loc) · 1.67 KB
/
Makefile
File metadata and controls
70 lines (47 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## Creator: Cameron Tacklind
##
## This is the main Makefile for building AVR projects. It should only be edited
## to add generic and project specific features. Ideally, there are no real targets
## here. Just variables, or overrides, that the included helper makefiles will use.
# List of C file basenames to build
C =
# List of CPP file basenames to build
CPP = main Board MLX90363 ThreePhaseDriver Debug Timer Clock ThreePhaseController Interpreter Predictor
CPP += TwillBotInterface TripleBuffer-impl CRC8 TimerTimeout
# Select specific LUFA source files to compile like this
#LUFA_SRC = LUFA/Drivers/USB/Class/Common/HIDParser.c
F_CPU = 16000000UL
#BLD_STD_GCC ?= c11
#BLD_STD_GXX ?= c++11
# Registers used by ThreePhaseDriver
BLD_FLAGS_EXTRA=-ffixed-2 -ffixed-3 -ffixed-4 -ffixed-5 -ffixed-6
TARGET = turnigy
MCU = atmega32u4
all: build-lss asm run
run: dfu-erase dfu-flash dfu-reset
ASM = #$(CPP:%=%.cpp.S)
# Load local settings
-include local.mk
uMakerPath ?= uMaker/
AVRpp_BASEDIR ?= AVR++/
# Force setting certain make flags
include $(uMakerPath)tools/makeflags.mk
# Optional configuration testing for development
include $(uMakerPath)tools/checks.mk
# Defs for our setup
include $(uMakerPath)vars/AVR.mk
# Library targets
#include $(uMakerPath)tools/AVR/lufa.mk
#include $(uMakerPath)tools/extlib.mk
include $(uMakerPath)tools/AVR/AVR++.mk
# Build targets
include $(uMakerPath)tools/build.mk
# Intermediate assembly
include $(uMakerPath)tools/assembly.mk
# Programmer targets
include $(uMakerPath)tools/dfu.mk
#include $(uMakerPath)tools/nrfjprog.mk
#include $(uMakerPath)tools/AVR/avrdude.mk
# Directory creation targets
include $(uMakerPath)tools/mkdir.mk
.PHONY: all run