1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/semtech-loramac: move lora region cflags to pkg makefile

This commit is contained in:
Alexandre Abadie 2019-05-25 22:03:52 +02:00
parent 4d052a6921
commit d87cf66473
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
INCLUDES += -I$(RIOTBASE)/pkg/semtech-loramac/include
DIRS += $(RIOTBASE)/pkg/semtech-loramac/contrib
# Use EU868 as default region
LORA_REGION ?= EU868
CFLAGS += -DREGION_$(LORA_REGION)
CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(LORA_REGION)

View File

@ -31,8 +31,7 @@
* to the physical support, the region where the device is used needs to be
* set at compile time. Example for EU868:
* ```
* CFLAGS += -DREGION_EU868
* CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_EU868
* LORA_REGION = EU868
* ```
*
* # Using the package API