feucht

Sensor application for transmitting humidity values

git clone https://git.8pit.net/feucht.git

 1# Name of your application
 2APPLICATION = feucht
 3INCLUDES += -I$(CURDIR)/include
 4
 5# Board for which the application should be compiled
 6BOARD ?= pba-d-01-kw2x
 7
 8# Disable optional assert(3) checks
 9CFLAGS += -DNDEBUG
10
11# CFLAGS taken from gnrc_minimal example
12CFLAGS += -DGNRC_IPV6_NETIF_ADDR_NUMOF=4 \
13	  -DGNRC_PKTBUF_SIZE=2048 \
14	  -DGNRC_IPV6_NC_SIZE=1
15
16# Change this to 0 show compiler invocation lines
17QUIET ?= 1
18
19# Modules required for both protocol backends
20USEMODULE += gnrc_netdev_default
21USEMODULE += auto_init_gnrc_netif
22USEMODULE += gnrc_ipv6_default
23USEMODULE += xtimer
24
25# Modules for debugging purposes
26USEMODULE += gnrc_icmpv6_echo
27USEMODULE += shell_commands
28
29# Module required for reading from the sensor
30USEMODULE += hdc1000
31
32# Backend specific files and modules
33ifeq (COAP,$(FEUCHT_PROTO))
34  DIRS += coap
35  FEUCHT_PORT ?= 5683
36
37  USEMODULE += gcoap
38  USEMODULE += coap
39else
40  ifeq (9P,$(FEUCHT_PROTO))
41    DIRS += 9p
42    FEUCHT_PORT ?= 5640
43
44    USEPKG += ninenano
45    USEMODULE += gnrc_tcp
46    USEMODULE += 9p
47
48    CFLAGS += -D_9P_MSIZE=127 -D_9P_MAXFIDS=2
49  else
50    $(error Unknown protocol backend.)
51  endif
52endif
53
54# Address and port of the protocol server
55CFLAGS += -DFEUCHT_PORT=$(FEUCHT_PORT)
56ifneq (,$(FEUCHT_HOST))
57  CFLAGS += -DFEUCHT_HOST="\"$(FEUCHT_HOST)\""
58endif
59
60# IEEE 802.15.4 channel to use
61ifneq (,$(FEUCHT_CHANNEL))
62  CFLAGS += -DIEEE802154_DEFAULT_CHANNEL="$(FEUCHT_CHANNEL)"
63endif
64
65include $(RIOTBASE)/Makefile.include