kopia lustrzana https://github.com/sh123/esp32_loraprs
Allow building igate mode from platformio file
rodzic
c1a5770292
commit
a5d1193783
|
@ -18,7 +18,9 @@
|
||||||
#define CFG_LOG_LEVEL DebugLogLevel::LVL_INFO
|
#define CFG_LOG_LEVEL DebugLogLevel::LVL_INFO
|
||||||
|
|
||||||
// select between client mode and APRS-IS gate mode
|
// select between client mode and APRS-IS gate mode
|
||||||
|
#ifndef CFG_IS_CLIENT_MODE
|
||||||
#define CFG_IS_CLIENT_MODE true // false - server mode (APRS-IS gate mode)
|
#define CFG_IS_CLIENT_MODE true // false - server mode (APRS-IS gate mode)
|
||||||
|
#endif
|
||||||
|
|
||||||
// change pinouts if not defined through native board LORA_* definitions
|
// change pinouts if not defined through native board LORA_* definitions
|
||||||
#ifndef LORA_RST
|
#ifndef LORA_RST
|
||||||
|
|
|
@ -6,6 +6,8 @@ default_envs = esp32dev
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
board_build.partitions = min_spiffs.csv
|
||||||
|
upload_protocol = esptool
|
||||||
lib_deps=
|
lib_deps=
|
||||||
hideakitai/DebugLog @ 0.6.6
|
hideakitai/DebugLog @ 0.6.6
|
||||||
contrem/arduino-timer @ 2.3.1
|
contrem/arduino-timer @ 2.3.1
|
||||||
|
@ -15,5 +17,11 @@ lib_deps=
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
board_build.f_cpu = 80000000L
|
board_build.f_cpu = 80000000L
|
||||||
board_build.partitions = min_spiffs.csv
|
build_flags =
|
||||||
upload_protocol = esptool
|
'-D CFG_IS_CLIENT_MODE=true'
|
||||||
|
|
||||||
|
[env:esp32dev_igate]
|
||||||
|
board = esp32dev
|
||||||
|
board_build.f_cpu = 240000000L
|
||||||
|
build_flags =
|
||||||
|
'-D CFG_IS_CLIENT_MODE=false'
|
||||||
|
|
Ładowanie…
Reference in New Issue