platformio.ini 3.6 KB

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