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"
choice TTN_LORA_FREQ
prompt "TTN LoRa frequency"
prompt "TTN LoRa frequency / region"
default TTN_LORA_FREQ_DISABLED
help
LoRa frequency must match the geographic region the device is operated in.
@ -11,10 +11,19 @@ config TTN_LORA_FREQ_DISABLED
bool "LoRa Disabled"
config TTN_LORA_FREQ_EU_868
bool "868 MHz (Europe)"
bool "Europe (868 MHz)"
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

View File

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

View File

@ -1715,7 +1715,8 @@ static void engineUpdate (void) {
#endif // !DISABLE_JOIN
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;
#if !defined(DISABLE_BEACONS)