platformio.ini 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. build_src_filter = ${nrf52_base.build_src_filter}
  28. +<helpers/*.cpp>
  29. +<helpers/sensors>
  30. +<../variants/wio_wm1110>
  31. debug_tool = jlink
  32. upload_protocol = jlink
  33. lib_deps = ${nrf52_base.lib_deps}
  34. ${sensor_base.lib_deps}
  35. adafruit/Adafruit LIS3DH @ ^1.2.4
  36. adafruit/Adafruit SHT4x Library @ ^1.0.4
  37. [env:wio_wm1110_repeater]
  38. extends = wio_wm1110
  39. build_flags =
  40. ${wio_wm1110.build_flags}
  41. -D ADVERT_NAME='"WM1110 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 = ${wio_wm1110.build_src_filter}
  49. +<../examples/simple_repeater/*.cpp>
  50. [env:wio_wm1110_room_server]
  51. extends = wio_wm1110
  52. build_flags =
  53. ${wio_wm1110.build_flags}
  54. -D ADVERT_NAME='"WM1110 Room"'
  55. -D ADVERT_LAT=0.0
  56. -D ADVERT_LON=0.0
  57. -D ADMIN_PASSWORD='"password"'
  58. -D ROOM_PASSWORD='"hello"'
  59. ; -D MESH_PACKET_LOGGING=1
  60. ; -D MESH_DEBUG=1
  61. build_src_filter = ${wio_wm1110.build_src_filter}
  62. +<../examples/simple_room_server/*.cpp>
  63. [env:wio_wm1110_companion_radio_ble]
  64. extends = wio_wm1110
  65. board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
  66. board_upload.maximum_size = 708608
  67. build_flags =
  68. ${wio_wm1110.build_flags}
  69. -D MAX_CONTACTS=350
  70. -D MAX_GROUP_CHANNELS=40
  71. -D BLE_PIN_CODE=123456
  72. -D QSPIFLASH=1
  73. -D OFFLINE_QUEUE_SIZE=256
  74. ; -D BLE_DEBUG_LOGGING=1
  75. ; -D MESH_PACKET_LOGGING=1
  76. ; -D MESH_DEBUG=1
  77. build_src_filter = ${wio_wm1110.build_src_filter}
  78. +<helpers/nrf52/SerialBLEInterface.cpp>
  79. +<../examples/companion_radio/*.cpp>
  80. lib_deps =
  81. ${wio_wm1110.lib_deps}
  82. densaugeo/base64 @ ~1.4.0