blob: a51cb867ab7b137ea0f14251f32f3323c16bde81 (
plain)
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
|
# Build configuration
CONF_CALIB := 0
# Project name
NAME := xytronic-lf
# Project source files
SRCS := bitmap.c \
buttons.c \
$(if $(filter 1,$(CONF_CALIB)),calib_current.c) \
controller_current.c \
controller_temp.c \
debug_uart.c \
display.c \
filter.c \
fixpt.c \
main.c \
measure.c \
measure_current.c \
measure_temp.c \
menu.c \
pid.c \
pwm_current.c \
settings.c \
scale.c \
sseg.c \
timer.c \
util.c
# Project fuse bits
# 8 MHz, BOD 2.7 V
LFUSE := 0xE2
HFUSE := 0xDD
EFUSE := 0x01
# CPU speed, in Hz
F_CPU := 8000000UL
# Architecture configuration
GCC_ARCH := atmega88
AVRDUDE_ARCH := m88
FUNC_STACK_LIMIT := 64
# Programmer selection.
# Values can be: avrisp2, mysmartusb
PROGRAMMER := avrisp2
# Additional compiler flags
CFLAGS := $(if $(filter 1,$(CONF_CALIB)),-DCONF_CALIB)
LDFLAGS :=
# Additional "clean" and "distclean" target files
CLEAN_FILES :=
DISTCLEAN_FILES :=
include avrmakelib.mk
tests: all
$(MAKE) -C tests clean
$(MAKE) -C tests all
.PHONY: tests
|