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:
parent
4d052a6921
commit
d87cf66473
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user