aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/Makefile
blob: f8577604f841f32ace0f51bd19a7d81dbb26632d (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
# Project name
NAME			:= dht-i2c

# Project source files
SRCS			:= dht.c \
			   main.c \
			   i2c_slave.c \
			   util.c

# Project fuse bits
# 16 Mhz PLL, WDTon, BOD 2.7
LFUSE			:= 0xF1
HFUSE			:= 0xCD
EFUSE			:= 0xFF

# CPU speed, in Hz
F_CPU			:= 16000000UL

# Architecture configuration
GCC_ARCH		:= attiny85
AVRDUDE_ARCH		:= t85
FUNC_STACK_LIMIT	:=

# Programmer selection.
# Values can be:  avrisp2, mysmartusb
PROGRAMMER		:= avrisp2

# Additional compiler flags
I2CS_EXPECTED_KHZ	:= 40
CFLAGS			:= -DI2CS_MAX_NR_SLAVES=1 \
			   -DI2CS_CLKSTRETCH_WORKAROUND \
			   -DI2CS_EXPECTED_KHZ=$(I2CS_EXPECTED_KHZ)
LDFLAGS			:=

# Additional "clean" and "distclean" target files
CLEAN_FILES		:=
DISTCLEAN_FILES		:=


include avrmakelib.mk
bues.ch cgit interface