Add more regions, disable class B features

This commit is contained in:
Manuel Bleichenbacher 2018-10-03 20:24:18 +02:00
parent 1fe8bf692c
commit 7488566e3c
3 changed files with 19 additions and 5 deletions

15
Kconfig
View File

@ -1,7 +1,7 @@
menu "The Things Network" menu "The Things Network"
choice TTN_LORA_FREQ choice TTN_LORA_FREQ
prompt "TTN LoRa frequency" prompt "TTN LoRa frequency / region"
default TTN_LORA_FREQ_DISABLED default TTN_LORA_FREQ_DISABLED
help help
LoRa frequency must match the geographic region the device is operated in. LoRa frequency must match the geographic region the device is operated in.
@ -11,10 +11,19 @@ config TTN_LORA_FREQ_DISABLED
bool "LoRa Disabled" bool "LoRa Disabled"
config TTN_LORA_FREQ_EU_868 config TTN_LORA_FREQ_EU_868
bool "868 MHz (Europe)" bool "Europe (868 MHz)"
config TTN_LORA_FREQ_US_915 config TTN_LORA_FREQ_US_915
bool "915 Mhz (North America)" bool "North America (915 Mhz)"
config TTN_LORA_FREQ_AU_921
bool "Australia (921 Mhz)"
config TTN_LORA_FREQ_AS_923
bool "Asia (923 Mhz)"
config TTN_LORA_FREQ_IN_866
bool "India (866 Mhz)"
endchoice endchoice

View File

@ -58,4 +58,8 @@
#if LMIC_DEBUG_LEVEL > 0 || LMIC_X_DEBUG_LEVEL > 0 #if LMIC_DEBUG_LEVEL > 0 || LMIC_X_DEBUG_LEVEL > 0
#include <stdio.h> #include <stdio.h>
#endif #endif
#define DISABLE_PING
#define DISABLE_BEACONS

View File

@ -1715,7 +1715,8 @@ static void engineUpdate (void) {
#endif // !DISABLE_JOIN #endif // !DISABLE_JOIN
ostime_t now = os_getTime(); ostime_t now = os_getTime();
ostime_t rxtime = 0; // ttn-esp32 change: suppress unused variable warning
ostime_t __attribute__((unused)) rxtime = 0;
ostime_t txbeg = 0; ostime_t txbeg = 0;
#if !defined(DISABLE_BEACONS) #if !defined(DISABLE_BEACONS)