platformio.ini 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [wio_wm1110]
  2. extends = nrf52_base
  3. board = seeed-xiao-afruitnrf52-nrf52840
  4. board_build.ldscript = boards/nrf52840_s140_v7.ld
  5. build_flags = ${nrf52_base.build_flags}
  6. ${sensor_base.build_flags}
  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/wio_wm1110
  10. -D NRF52_PLATFORM
  11. -D WIO_WM1110
  12. ; -D MESH_DEBUG=1
  13. -D RADIO_CLASS=CustomLR1110
  14. -D WRAPPER_CLASS=CustomLR1110Wrapper
  15. -D LORA_TX_POWER=22
  16. -D RX_BOOSTED_GAIN=true
  17. -D P_LORA_DIO_1=40
  18. -D P_LORA_RESET=42
  19. -D P_LORA_BUSY=43
  20. -D P_LORA_NSS=44
  21. -D P_LORA_SCLK=45
  22. -D P_LORA_MOSI=46
  23. -D P_LORA_MISO=47
  24. -D LR11X0_DIO_AS_RF_SWITCH=true
  25. -D LR11X0_DIO3_TCXO_VOLTAGE=1.8
  26. -D RF_SWITCH_TABLE
  27. -D ENV_INCLUDE_GPS=0
  28. build_src_filter = ${nrf52_base.build_src_filter}
  29. +<helpers/*.cpp>
  30. +<helpers/sensors>
  31. +<../variants/wio_wm1110>
  32. debug_tool = jlink
  33. upload_protocol = jlink
  34. lib_deps = ${nrf52_base.lib_deps}
  35. ${sensor_base.lib_deps}
  36. adafruit/Adafruit LIS3DH @ ^1.2.4
  37. adafruit/Adafruit SHT4x Library @ ^1.0.4
  38. [env:wio_wm1110_repeater]
  39. extends = wio_wm1110
  40. build_flags =
  41. ${wio_wm1110.build_flags}
  42. -D ADVERT_NAME='"WM1110 Repeater"'
  43. -D ADVERT_LAT=0.0
  44. -D ADVERT_LON=0.0
  45. -D ADMIN_PASSWORD='"password"'
  46. -D MAX_NEIGHBOURS=50
  47. ; -D MESH_PACKET_LOGGING=1
  48. ; -D MESH_DEBUG=1
  49. build_src_filter = ${wio_wm1110.build_src_filter}
  50. +<../examples/simple_repeater/*.cpp>
  51. [env:wio_wm1110_room_server]
  52. extends = wio_wm1110
  53. build_flags =
  54. ${wio_wm1110.build_flags}
  55. -D ADVERT_NAME='"WM1110 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. build_src_filter = ${wio_wm1110.build_src_filter}
  63. +<../examples/simple_room_server/*.cpp>
  64. [env:wio_wm1110_companion_radio_ble]
  65. extends = wio_wm1110
  66. board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
  67. board_upload.maximum_size = 708608
  68. build_flags =
  69. ${wio_wm1110.build_flags}
  70. -D MAX_CONTACTS=350
  71. -D MAX_GROUP_CHANNELS=40
  72. -D BLE_PIN_CODE=123456
  73. -D QSPIFLASH=1
  74. -D OFFLINE_QUEUE_SIZE=256
  75. ; -D BLE_DEBUG_LOGGING=1
  76. ; -D MESH_PACKET_LOGGING=1
  77. ; -D MESH_DEBUG=1
  78. build_src_filter = ${wio_wm1110.build_src_filter}
  79. +<helpers/nrf52/SerialBLEInterface.cpp>
  80. +<../examples/companion_radio/*.cpp>
  81. lib_deps =
  82. ${wio_wm1110.lib_deps}
  83. densaugeo/base64 @ ~1.4.0