Skip to content

Commit 8d6cf6b

Browse files
committed
Cmake source files for LoRaMac-node library's US 915MHz band support. Remove hard-coding of RegionEU868 definition - should be determined by the application which regions are enabled.
1 parent 5f15846 commit 8d6cf6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ set(COMPONENT_SRCS
3636
"src/LoRaMac-node/src/apps/LoRaMac/common/LmHandler/packages/LmhpClockSync.c"
3737
"src/LoRaMac-node/src/apps/LoRaMac/common/LmHandler/packages/LmhpCompliance.c"
3838
"src/LoRaMac-node/src/mac/region/Region.c"
39+
"src/LoRaMac-node/src/mac/region/RegionBaseUS.c"
3940
"src/LoRaMac-node/src/mac/region/RegionCommon.c"
4041
"src/LoRaMac-node/src/mac/region/RegionEU868.c"
42+
"src/LoRaMac-node/src/mac/region/RegionUS915.c"
4143
)
4244

4345
# idf.py build 2>&1 | tee LOG | grep "undefined reference" | sed -e 's/.*reference to//' | sort | uniq
@@ -64,6 +66,4 @@ include_directories(
6466
$ENV{IDF_PATH}/components/driver/spi/include
6567
$ENV{IDF_PATH}/components/esp_timer/include
6668
)
67-
68-
add_definitions(-DREGION_EU868=1)
6969
add_definitions(-DSOFT_SE)

0 commit comments

Comments
 (0)