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

examples/lorawan: remove useless lora region cflags

This commit is contained in:
Alexandre Abadie 2019-05-25 22:04:04 +02:00
parent d87cf66473
commit 8823548fa5
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 3 additions and 5 deletions

View File

@ -17,7 +17,7 @@ APPKEY ?= 00000000000000000000000000000000
DRIVER ?= sx1276
# Default region is Europe and default band is 868MHz
REGION ?= EU868
LORA_REGION ?= EU868
# Include the Semtech-loramac package
USEPKG += semtech-loramac
@ -26,9 +26,7 @@ USEMODULE += $(DRIVER)
USEMODULE += fmt
FEATURES_REQUIRED += periph_rtc
CFLAGS += -DREGION_$(REGION)
CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\"
CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(REGION)
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the

View File

@ -18,12 +18,12 @@ Simply build and flash the application for a ST B-L072Z-LRWAN1 board:
make flash term
Use the `BOARD`, `DRIVER` and `REGION` make variables to adapt the application
Use the `BOARD`, `DRIVER` and `LORA_REGION` make variables to adapt the application
to your hardware setup and region of use:
- `BOARD` can be one of the nucleo-64 boards
- `DRIVER` can be either `sx1276` or `sx1272`
- `REGION` can be `EU868`, `US915`, etc (see LoRaWAN regional parameters for
- `LORA_REGION` can be `EU868`, `US915`, etc (see LoRaWAN regional parameters for
details).
ST Nucleo-64 can be used with mbed LoRa shields: there's one based on