mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
|
# name of your application
|
||
|
APPLICATION = lorawan
|
||
|
|
||
|
# Use the ST B-L072Z-LRWAN1 board by default:
|
||
|
BOARD ?= b-l072z-lrwan1
|
||
|
|
||
|
# This has to be the absolute path to the RIOT base directory:
|
||
|
RIOTBASE ?= $(CURDIR)/../..
|
||
|
|
||
|
BOARD_INSUFFICIENT_MEMORY := nucleo32-f031 nucleo32-f042 nucleo32-l031
|
||
|
|
||
|
DEVEUI ?= 0000000000000000
|
||
|
APPEUI ?= 0000000000000000
|
||
|
APPKEY ?= 00000000000000000000000000000000
|
||
|
|
||
|
# Default radio driver is Semtech SX1276 (used by the B-L072Z-LRWAN1 board)
|
||
|
DRIVER ?= sx1276
|
||
|
|
||
|
# Default region is Europe and default band is 868MHz
|
||
|
REGION ?= EU868
|
||
|
|
||
|
# Include the Semtech-loramac package
|
||
|
USEPKG += semtech-loramac
|
||
|
|
||
|
USEMODULE += $(DRIVER)
|
||
|
USEMODULE += fmt
|
||
|
FEATURES_REQUIRED += periph_rtc
|
||
|
|
||
|
CFLAGS += -DREGION_$(REGION)
|
||
|
CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\"
|
||
|
|
||
|
# Comment this out to disable code in RIOT that does safety checking
|
||
|
# which is not needed in a production environment but helps in the
|
||
|
# development process:
|
||
|
DEVELHELP ?= 1
|
||
|
|
||
|
# Change this to 0 show compiler invocation lines by default:
|
||
|
QUIET ?= 1
|
||
|
|
||
|
include $(RIOTBASE)/Makefile.include
|