Skip to content

Commit dab5ca3

Browse files
committed
added gateway + riot fw
1 parent 846d3bd commit dab5ca3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

device/riot/sensors_lora/Makefile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# name of your application
2+
APPLICATION = lorawan
3+
4+
# Use the ST B-L072Z-LRWAN1 board by default:
5+
BOARD ?= b-l072z-lrwan1
6+
7+
# This has to be the absolute path to the RIOT base directory:
8+
RIOTBASE ?= $(CURDIR)/../..
9+
10+
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 nucleo-l031k6
11+
# Here you have to set the right values from your TTN device and application
12+
DEVEUI ?= 00EDBC97D72E5582
13+
APPEUI ?= 70B3D57ED002DBCE
14+
APPKEY ?= AA352D887CC62A69DEE4B46983DE66B8
15+
DEVICE_NAME ?= device_teramo
16+
# Default radio driver is Semtech SX1276 (used by the B-L072Z-LRWAN1 board)
17+
DRIVER ?= sx1276
18+
19+
# Default region is Europe and default band is 868MHz
20+
REGION ?= EU868
21+
22+
# Include the Semtech-loramac package
23+
USEPKG += semtech-loramac
24+
25+
USEMODULE += $(DRIVER)
26+
USEMODULE += fmt
27+
USEMODULE += xtimer
28+
USEMODULE += hts221
29+
FEATURES_REQUIRED += periph_rtc
30+
31+
CFLAGS += -DREGION_$(REGION)
32+
CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\"
33+
CFLAGS += -DEVICE_NAME=\"$(DEVICE_NAME)\"
34+
35+
CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(REGION)
36+
37+
# Comment this out to disable code in RIOT that does safety checking
38+
# which is not needed in a production environment but helps in the
39+
# development process:
40+
DEVELHELP ?= 1
41+
42+
# Change this to 0 show compiler invocation lines by default:
43+
QUIET ?= 1
44+
45+
include $(RIOTBASE)/Makefile.include

0 commit comments

Comments
 (0)