platformio.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [t1000-e]
  2. extends = nrf52_base
  3. board = tracker-t1000-e
  4. board_build.ldscript = boards/nrf52840_s140_v7.ld
  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. -I variants/t1000-e
  10. -I src/helpers/ui
  11. -D T1000_E
  12. -D PIN_USER_BTN=6
  13. -D USER_BTN_PRESSED=HIGH
  14. -D PIN_STATUS_LED=24
  15. -D RADIO_CLASS=CustomLR1110
  16. -D WRAPPER_CLASS=CustomLR1110Wrapper
  17. -D LORA_TX_POWER=22
  18. build_src_filter = ${nrf52_base.build_src_filter}
  19. +<helpers/*.cpp>
  20. +<helpers/nrf52/T1000eBoard.cpp>
  21. +<../variants/t1000-e>
  22. debug_tool = jlink
  23. upload_protocol = nrfutil
  24. [env:t1000e_repeater]
  25. extends = t1000-e
  26. build_flags = ${t1000-e.build_flags}
  27. -I examples/companion_radio/ui-orig
  28. -D ADVERT_NAME='"t1000-e Repeater"'
  29. -D ADVERT_LAT=0.0
  30. -D ADVERT_LON=0.0
  31. -D ADMIN_PASSWORD='"password"'
  32. -D MAX_NEIGHBOURS=8
  33. ; -D MESH_PACKET_LOGGING=1
  34. ; -D MESH_DEBUG=1
  35. -D RX_BOOSTED_GAIN=true
  36. -D RF_SWITCH_TABLE
  37. build_src_filter = ${t1000-e.build_src_filter}
  38. +<../examples/simple_repeater>
  39. lib_deps = ${t1000-e.lib_deps}
  40. stevemarple/MicroNMEA @ ^2.0.6
  41. [env:t1000e_room_server]
  42. extends = t1000-e
  43. build_flags = ${t1000-e.build_flags}
  44. -I examples/companion_radio/ui-orig
  45. -D ADVERT_NAME='"t1000-e Room"'
  46. -D ADVERT_LAT=0.0
  47. -D ADVERT_LON=0.0
  48. -D ADMIN_PASSWORD='"password"'
  49. -D ROOM_PASSWORD='"hello"'
  50. ; -D MESH_PACKET_LOGGING=1
  51. ; -D MESH_DEBUG=1
  52. -D RX_BOOSTED_GAIN=true
  53. -D RF_SWITCH_TABLE
  54. build_src_filter = ${t1000-e.build_src_filter}
  55. +<../examples/simple_room_server>
  56. lib_deps = ${t1000-e.lib_deps}
  57. stevemarple/MicroNMEA @ ^2.0.6
  58. [env:t1000e_companion_radio_usb]
  59. extends = t1000-e
  60. build_flags = ${t1000-e.build_flags}
  61. -I examples/companion_radio/ui-orig
  62. -D MAX_CONTACTS=100
  63. -D MAX_GROUP_CHANNELS=8
  64. ; -D MESH_PACKET_LOGGING=1
  65. ; -D MESH_DEBUG=1
  66. -D OFFLINE_QUEUE_SIZE=256
  67. -D RX_BOOSTED_GAIN=true
  68. -D RF_SWITCH_TABLE
  69. -D DISPLAY_CLASS=NullDisplayDriver
  70. -D PIN_BUZZER=25
  71. -D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
  72. build_src_filter = ${t1000-e.build_src_filter}
  73. +<helpers/ui/buzzer.cpp>
  74. +<../examples/companion_radio/*.cpp>
  75. +<../examples/companion_radio/ui-orig/*.cpp>
  76. lib_deps = ${t1000-e.lib_deps}
  77. densaugeo/base64 @ ~1.4.0
  78. stevemarple/MicroNMEA @ ^2.0.6
  79. end2endzone/NonBlockingRTTTL@^1.3.0
  80. [env:t1000e_companion_radio_ble]
  81. extends = t1000-e
  82. build_flags = ${t1000-e.build_flags}
  83. -I examples/companion_radio/ui-orig
  84. -D MAX_CONTACTS=100
  85. -D MAX_GROUP_CHANNELS=8
  86. -D BLE_PIN_CODE=123456
  87. ; -D BLE_DEBUG_LOGGING=1
  88. ; -D MESH_PACKET_LOGGING=1
  89. ; -D MESH_DEBUG=1
  90. -D OFFLINE_QUEUE_SIZE=256
  91. -D RX_BOOSTED_GAIN=true
  92. -D RF_SWITCH_TABLE
  93. -D DISPLAY_CLASS=NullDisplayDriver
  94. -D PIN_BUZZER=25
  95. -D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
  96. build_src_filter = ${t1000-e.build_src_filter}
  97. +<helpers/nrf52/SerialBLEInterface.cpp>
  98. +<helpers/ui/buzzer.cpp>
  99. +<../examples/companion_radio/*.cpp>
  100. +<../examples/companion_radio/ui-orig/*.cpp>
  101. lib_deps = ${t1000-e.lib_deps}
  102. densaugeo/base64 @ ~1.4.0
  103. stevemarple/MicroNMEA @ ^2.0.6
  104. end2endzone/NonBlockingRTTTL@^1.3.0