Skip to content

Instantly share code, notes, and snippets.

@indranil32
Created January 23, 2021 19:31
Show Gist options
  • Save indranil32/85777f62a2b10a8ff1b33635f3be36cf to your computer and use it in GitHub Desktop.
Save indranil32/85777f62a2b10a8ff1b33635f3be36cf to your computer and use it in GitHub Desktop.
RIOT-LORAWAN-TTN-TAGOIO-EXAMPLE
# 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)/../..
# 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 += xtimer
USEMODULE += hts221
# 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
CFLAGS += -DREGION_$(REGION)
CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(REGION)
include $(RIOTBASE)/Makefile.include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment