94 lines
2.3 KiB
INI
94 lines
2.3 KiB
INI
[platformio]
|
|
default_envs = promicro_security
|
|
|
|
[arduino_base]
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
lib_deps =
|
|
SPI
|
|
Wire
|
|
jgromes/RadioLib @ ^7.6.0
|
|
rweather/Crypto @ ^0.4.0
|
|
adafruit/RTClib @ ^2.1.3
|
|
electroniccats/CayenneLPP @ 1.6.1
|
|
paulstoffregen/OneWire @ ^2.3.8
|
|
milesburton/DallasTemperature @ ^3.11.0
|
|
build_flags =
|
|
-w -DNDEBUG
|
|
-DRADIOLIB_STATIC_ONLY=1
|
|
-DRADIOLIB_GODMODE=1
|
|
-D ENABLE_ADVERT_ON_BOOT=1
|
|
-D ENABLE_PRIVATE_KEY_IMPORT=1
|
|
-D ENABLE_PRIVATE_KEY_EXPORT=1
|
|
-D RADIOLIB_EXCLUDE_CC1101=1
|
|
-D RADIOLIB_EXCLUDE_RF69=1
|
|
-D RADIOLIB_EXCLUDE_SX1231=1
|
|
-D RADIOLIB_EXCLUDE_SI443X=1
|
|
-D RADIOLIB_EXCLUDE_RFM2X=1
|
|
-D RADIOLIB_EXCLUDE_SX128X=1
|
|
-D RADIOLIB_EXCLUDE_AFSK=1
|
|
-D RADIOLIB_EXCLUDE_AX25=1
|
|
-D RADIOLIB_EXCLUDE_HELLSCHREIBER=1
|
|
-D RADIOLIB_EXCLUDE_MORSE=1
|
|
-D RADIOLIB_EXCLUDE_APRS=1
|
|
-D RADIOLIB_EXCLUDE_BELL=1
|
|
-D RADIOLIB_EXCLUDE_RTTY=1
|
|
-D RADIOLIB_EXCLUDE_SSTV=1
|
|
|
|
[nrf52_base]
|
|
extends = arduino_base
|
|
platform = nordicnrf52
|
|
platform_packages =
|
|
framework-arduinoadafruitnrf52 @ https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301
|
|
extra_scripts = scripts/create_uf2.py
|
|
build_flags = ${arduino_base.build_flags}
|
|
-D NRF52_PLATFORM
|
|
-D LFS_NO_ASSERT=1
|
|
-D EXTRAFS=1
|
|
lib_deps =
|
|
${arduino_base.lib_deps}
|
|
https://github.com/oltaco/CustomLFS#0.2.2
|
|
|
|
[security_base]
|
|
extends = nrf52_base
|
|
build_flags =
|
|
${nrf52_base.build_flags}
|
|
-I src
|
|
-I ../MeshCore/src
|
|
-I ../MeshCore/lib/ed25519
|
|
-D USE_SX1262
|
|
-D RADIO_CLASS=CustomSX1262
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
|
-D MAX_CONTACTS=50
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D OFFLINE_QUEUE_SIZE=32
|
|
-D PATH_HASH_MODE=0
|
|
-D NRF52_PLATFORM
|
|
lib_deps =
|
|
${nrf52_base.lib_deps}
|
|
file://../MeshCore
|
|
densaugeo/base64 @ ~1.4.0
|
|
Bluefruit52Lib
|
|
|
|
[env:promicro_security]
|
|
extends = security_base
|
|
board = promicro_nrf52840
|
|
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
|
board_upload.maximum_size = 712704
|
|
build_flags =
|
|
${security_base.build_flags}
|
|
-D PROMICRO
|
|
-I src/variants/promicro
|
|
-D LORA_FREQ=868.731018
|
|
-D LORA_BW=62.5
|
|
-D LORA_SF=7
|
|
-D LORA_CR=7
|
|
-I $PROJECT_PACKAGES_DIR/framework-arduinoadafruitnrf52/libraries/Bluefruit52Lib/src
|
|
-I $PROJECT_PACKAGES_DIR/framework-arduinoadafruitnrf52/libraries/Adafruit_nRFCrypto/src
|
|
build_src_filter =
|
|
+<*.cpp>
|
|
+<variants/promicro/*.cpp>
|
|
+<../../MeshCore/lib/ed25519/*.c>
|
|
upload_protocol = nrfutil
|
|
debug_tool = jlink
|