platformio.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. -D RF_SWITCH_TABLE
  19. -D RX_BOOSTED_GAIN=true
  20. -D P_LORA_BUSY=7 ; P0.7
  21. -D P_LORA_SCLK=11 ; P0.11
  22. -D P_LORA_NSS=12 ; P0.12
  23. -D P_LORA_DIO_1=33 ; P1.1
  24. -D P_LORA_MISO=40 ; P1.8
  25. -D P_LORA_MOSI=41 ; P0.9
  26. -D P_LORA_RESET=42 ; P1.10
  27. -D LR11X0_DIO_AS_RF_SWITCH=true
  28. -D LR11X0_DIO3_TCXO_VOLTAGE=1.6
  29. -D ENV_INCLUDE_GPS=1
  30. build_src_filter = ${nrf52_base.build_src_filter}
  31. +<helpers/*.cpp>
  32. +<helpers/nrf52/T1000eBoard.cpp>
  33. +<../variants/t1000-e>
  34. debug_tool = jlink
  35. upload_protocol = nrfutil
  36. [env:t1000e_repeater]
  37. extends = t1000-e
  38. build_flags = ${t1000-e.build_flags}
  39. -I examples/companion_radio/ui-orig
  40. -D ADVERT_NAME='"t1000-e Repeater"'
  41. -D ADVERT_LAT=0.0
  42. -D ADVERT_LON=0.0
  43. -D ADMIN_PASSWORD='"password"'
  44. -D MAX_NEIGHBOURS=50
  45. ; -D MESH_PACKET_LOGGING=1
  46. ; -D MESH_DEBUG=1
  47. build_src_filter = ${t1000-e.build_src_filter}
  48. +<../examples/simple_repeater>
  49. lib_deps = ${t1000-e.lib_deps}
  50. stevemarple/MicroNMEA @ ^2.0.6
  51. [env:t1000e_room_server]
  52. extends = t1000-e
  53. build_flags = ${t1000-e.build_flags}
  54. -I examples/companion_radio/ui-orig
  55. -D ADVERT_NAME='"t1000-e Room"'
  56. -D ADVERT_LAT=0.0
  57. -D ADVERT_LON=0.0
  58. -D ADMIN_PASSWORD='"password"'
  59. -D ROOM_PASSWORD='"hello"'
  60. ; -D MESH_PACKET_LOGGING=1
  61. ; -D MESH_DEBUG=1
  62. -D RF_SWITCH_TABLE
  63. build_src_filter = ${t1000-e.build_src_filter}
  64. +<../examples/simple_room_server>
  65. lib_deps = ${t1000-e.lib_deps}
  66. stevemarple/MicroNMEA @ ^2.0.6
  67. [env:t1000e_companion_radio_usb]
  68. extends = t1000-e
  69. board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
  70. board_upload.maximum_size = 708608
  71. build_flags = ${t1000-e.build_flags}
  72. -I examples/companion_radio/ui-orig
  73. -D MAX_CONTACTS=350
  74. -D MAX_GROUP_CHANNELS=40
  75. ; -D MESH_PACKET_LOGGING=1
  76. ; -D MESH_DEBUG=1
  77. -D OFFLINE_QUEUE_SIZE=256
  78. -D DISPLAY_CLASS=NullDisplayDriver
  79. -D PIN_BUZZER=25
  80. -D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
  81. build_src_filter = ${t1000-e.build_src_filter}
  82. +<helpers/ui/buzzer.cpp>
  83. +<../examples/companion_radio/*.cpp>
  84. +<../examples/companion_radio/ui-orig/*.cpp>
  85. lib_deps = ${t1000-e.lib_deps}
  86. densaugeo/base64 @ ~1.4.0
  87. stevemarple/MicroNMEA @ ^2.0.6
  88. end2endzone/NonBlockingRTTTL@^1.3.0
  89. [env:t1000e_companion_radio_ble]
  90. extends = t1000-e
  91. board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
  92. board_upload.maximum_size = 708608
  93. build_flags = ${t1000-e.build_flags}
  94. -I examples/companion_radio/ui-orig
  95. -D MAX_CONTACTS=350
  96. -D MAX_GROUP_CHANNELS=40
  97. -D BLE_PIN_CODE=123456
  98. -D BLE_TX_POWER=0
  99. ; -D BLE_DEBUG_LOGGING=1
  100. ; -D MESH_PACKET_LOGGING=1
  101. ; -D MESH_DEBUG=1
  102. -D OFFLINE_QUEUE_SIZE=256
  103. -D DISPLAY_CLASS=NullDisplayDriver
  104. -D PIN_BUZZER=25
  105. -D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
  106. build_src_filter = ${t1000-e.build_src_filter}
  107. +<helpers/nrf52/SerialBLEInterface.cpp>
  108. +<helpers/ui/buzzer.cpp>
  109. +<../examples/companion_radio/*.cpp>
  110. +<../examples/companion_radio/ui-orig/*.cpp>
  111. lib_deps = ${t1000-e.lib_deps}
  112. densaugeo/base64 @ ~1.4.0
  113. stevemarple/MicroNMEA @ ^2.0.6
  114. end2endzone/NonBlockingRTTTL@^1.3.0