platformio.ini 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ; ----------------- NRF52 T1000e---------------------
  2. [nrf52840_t1000e]
  3. extends = nrf52_base
  4. platform_packages = framework-arduinoadafruitnrf52
  5. build_flags = ${nrf52_base.build_flags}
  6. -I src/helpers/nrf52
  7. -I lib/nrf52/s140_nrf52_7.3.0_API/include
  8. -I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52
  9. lib_ignore =
  10. BluetoothOTA
  11. lvgl
  12. lib5b4
  13. lib_deps =
  14. ${nrf52_base.lib_deps}
  15. rweather/Crypto @ ^0.4.0
  16. [t1000-e]
  17. extends = nrf52840_t1000e
  18. board = tracker-t1000-e
  19. board_build.ldscript = boards/nrf52840_s140_v7.ld
  20. build_flags = ${nrf52840_t1000e.build_flags}
  21. -I variants/t1000-e
  22. -D T1000_E
  23. -D PIN_USER_BTN=6
  24. -D USER_BTN_PRESSED=HIGH
  25. -D PIN_STATUS_LED=24
  26. -D RADIO_CLASS=CustomLR1110
  27. -D WRAPPER_CLASS=CustomLR1110Wrapper
  28. -D LORA_TX_POWER=22
  29. build_src_filter = ${nrf52840_t1000e.build_src_filter}
  30. +<helpers/*.cpp>
  31. +<helpers/nrf52/T1000eBoard.cpp>
  32. +<../variants/t1000-e>
  33. debug_tool = jlink
  34. upload_protocol = nrfutil
  35. [env:t1000e_companion_radio_ble]
  36. extends = t1000-e
  37. build_flags = ${t1000-e.build_flags}
  38. -D MAX_CONTACTS=100
  39. -D MAX_GROUP_CHANNELS=8
  40. -D BLE_PIN_CODE=123456
  41. ; -D BLE_DEBUG_LOGGING=1
  42. ; -D MESH_PACKET_LOGGING=1
  43. ; -D MESH_DEBUG=1
  44. -D OFFLINE_QUEUE_SIZE=256
  45. -D RX_BOOSTED_GAIN=true
  46. -D RF_SWITCH_TABLE
  47. -D DISPLAY_CLASS=NullDisplayDriver
  48. -D PIN_BUZZER=25
  49. -D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
  50. build_src_filter = ${t1000-e.build_src_filter}
  51. +<helpers/nrf52/SerialBLEInterface.cpp>
  52. +<helpers/ui/buzzer.cpp>
  53. +<../examples/companion_radio/*.cpp>
  54. lib_deps = ${t1000-e.lib_deps}
  55. densaugeo/base64 @ ~1.4.0
  56. stevemarple/MicroNMEA @ ^2.0.6
  57. end2endzone/NonBlockingRTTTL@^1.3.0