Browse Source

moved nrf sdk headers to ./lib/ and added Repeater envs for t114 & t-echo

pull/68/head
Rastislav Vysoky 1 year ago
parent
commit
03458269ac
  1. 8
      examples/simple_repeater/main.cpp
  2. 0
      lib/nrf52/include/ble.h
  3. 0
      lib/nrf52/include/ble_err.h
  4. 0
      lib/nrf52/include/ble_gap.h
  5. 0
      lib/nrf52/include/ble_gatt.h
  6. 0
      lib/nrf52/include/ble_gattc.h
  7. 0
      lib/nrf52/include/ble_gatts.h
  8. 0
      lib/nrf52/include/ble_hci.h
  9. 0
      lib/nrf52/include/ble_l2cap.h
  10. 0
      lib/nrf52/include/ble_ranges.h
  11. 0
      lib/nrf52/include/ble_types.h
  12. 0
      lib/nrf52/include/nrf52/nrf_mbr.h
  13. 0
      lib/nrf52/include/nrf_error.h
  14. 0
      lib/nrf52/include/nrf_error_sdm.h
  15. 0
      lib/nrf52/include/nrf_error_soc.h
  16. 0
      lib/nrf52/include/nrf_nvic.h
  17. 0
      lib/nrf52/include/nrf_sdm.h
  18. 0
      lib/nrf52/include/nrf_soc.h
  19. 0
      lib/nrf52/include/nrf_svc.h
  20. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble.h
  21. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_err.h
  22. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gap.h
  23. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gatt.h
  24. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gattc.h
  25. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gatts.h
  26. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_hci.h
  27. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_l2cap.h
  28. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_ranges.h
  29. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/ble_types.h
  30. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52/nrf_mbr.h
  31. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error.h
  32. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_sdm.h
  33. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_soc.h
  34. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_nvic.h
  35. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_sdm.h
  36. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_soc.h
  37. 0
      lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_svc.h
  38. 36
      platformio.ini

8
examples/simple_repeater/main.cpp

@ -84,6 +84,14 @@
#include <helpers/nrf52/RAK4631Board.h> #include <helpers/nrf52/RAK4631Board.h>
#include <helpers/CustomSX1262Wrapper.h> #include <helpers/CustomSX1262Wrapper.h>
static RAK4631Board board; static RAK4631Board board;
#elif defined(HELTEC_T114)
#include <helpers/nrf52/T114Board.h>
#include <helpers/CustomSX1262Wrapper.h>
static T114Board board;
#elif defined(LILYGO_TECHO)
#include <helpers/nrf52/TechoBoard.h>
#include <helpers/CustomSX1262Wrapper.h>
static TechoBoard board;
#else #else
#error "need to provide a 'board' object" #error "need to provide a 'board' object"
#endif #endif

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble.h → lib/nrf52/include/ble.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_err.h → lib/nrf52/include/ble_err.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_gap.h → lib/nrf52/include/ble_gap.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_gatt.h → lib/nrf52/include/ble_gatt.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_gattc.h → lib/nrf52/include/ble_gattc.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_gatts.h → lib/nrf52/include/ble_gatts.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_hci.h → lib/nrf52/include/ble_hci.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_l2cap.h → lib/nrf52/include/ble_l2cap.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_ranges.h → lib/nrf52/include/ble_ranges.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/ble_types.h → lib/nrf52/include/ble_types.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf52/nrf_mbr.h → lib/nrf52/include/nrf52/nrf_mbr.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_error.h → lib/nrf52/include/nrf_error.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_error_sdm.h → lib/nrf52/include/nrf_error_sdm.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_error_soc.h → lib/nrf52/include/nrf_error_soc.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_nvic.h → lib/nrf52/include/nrf_nvic.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_sdm.h → lib/nrf52/include/nrf_sdm.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_soc.h → lib/nrf52/include/nrf_soc.h

0
src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf_svc.h → lib/nrf52/include/nrf_svc.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_err.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_err.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_gap.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gap.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_gatt.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gatt.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_gattc.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gattc.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_gatts.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_gatts.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_hci.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_hci.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_l2cap.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_l2cap.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_ranges.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_ranges.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/ble_types.h → lib/nrf52/s140_nrf52_7.3.0_API/include/ble_types.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf52/nrf_mbr.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52/nrf_mbr.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_error.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_sdm.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_sdm.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_soc.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_error_soc.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_nvic.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_nvic.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_sdm.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_sdm.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_soc.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_soc.h

0
src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf_svc.h → lib/nrf52/s140_nrf52_7.3.0_API/include/nrf_svc.h

36
platformio.ini

@ -628,8 +628,8 @@ extends = nrf52_base
platform_packages = framework-arduinoadafruitnrf52 platform_packages = framework-arduinoadafruitnrf52
build_flags = ${nrf52_base.build_flags} build_flags = ${nrf52_base.build_flags}
-I src/helpers/nrf52 -I src/helpers/nrf52
-I src/helpers/nrf52/s140_nrf52_7.3.0_API/include -I lib/nrf52/s140_nrf52_7.3.0_API/include
-I src/helpers/nrf52/s140_nrf52_7.3.0_API/include/nrf52 -I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52
lib_ignore = lib_ignore =
BluetoothOTA BluetoothOTA
lvgl lvgl
@ -675,8 +675,8 @@ extends = nrf52_base
platform_packages = framework-arduinoadafruitnrf52 platform_packages = framework-arduinoadafruitnrf52
build_flags = ${nrf52_base.build_flags} build_flags = ${nrf52_base.build_flags}
-I src/helpers/nrf52 -I src/helpers/nrf52
-I src/helpers/nrf52/s140_nrf52_6.1.1_API/include -I lib/nrf52/s140_nrf52_6.1.1_API/include
-I src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf52 -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
lib_deps = lib_deps =
${nrf52_base.lib_deps} ${nrf52_base.lib_deps}
rweather/Crypto @ ^0.4.0 rweather/Crypto @ ^0.4.0
@ -699,6 +699,18 @@ build_src_filter = ${nrf52840_t114.build_src_filter}
debug_tool = jlink debug_tool = jlink
upload_protocol = nrfutil upload_protocol = nrfutil
[env:Heltec_t114_repeater]
extends = Heltec_t114
build_src_filter = ${Heltec_t114.build_src_filter} +<../examples/simple_repeater/main.cpp>
build_flags =
${Heltec_t114.build_flags}
-D ADVERT_NAME="\"Heltec_T114 Repeater\""
-D ADVERT_LAT=-37.0
-D ADVERT_LON=145.0
-D ADMIN_PASSWORD="\"password\""
; -D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
[env:Heltec_t114_companion_radio_ble] [env:Heltec_t114_companion_radio_ble]
extends = Heltec_t114 extends = Heltec_t114
build_flags = build_flags =
@ -721,8 +733,8 @@ extends = nrf52_base
platform_packages = framework-arduinoadafruitnrf52 platform_packages = framework-arduinoadafruitnrf52
build_flags = ${nrf52_base.build_flags} build_flags = ${nrf52_base.build_flags}
-I src/helpers/nrf52 -I src/helpers/nrf52
-I src/helpers/nrf52/s140_nrf52_6.1.1_API/include -I lib/nrf52/s140_nrf52_6.1.1_API/include
-I src/helpers/nrf52/s140_nrf52_6.1.1_API/include/nrf52 -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
lib_deps = lib_deps =
${nrf52_base.lib_deps} ${nrf52_base.lib_deps}
rweather/Crypto @ ^0.4.0 rweather/Crypto @ ^0.4.0
@ -745,6 +757,18 @@ build_src_filter = ${nrf52840_techo.build_src_filter}
debug_tool = jlink debug_tool = jlink
upload_protocol = nrfutil upload_protocol = nrfutil
[env:LilyGo_T-Echo_repeater]
extends = LilyGo_Techo
build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_repeater/main.cpp>
build_flags =
${LilyGo_Techo.build_flags}
-D ADVERT_NAME="\"T-Echo Repeater\""
-D ADVERT_LAT=-37.0
-D ADVERT_LON=145.0
-D ADMIN_PASSWORD="\"password\""
; -D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
[env:LilyGo_T-Echo_companion_radio_ble] [env:LilyGo_T-Echo_companion_radio_ble]
extends = LilyGo_Techo extends = LilyGo_Techo
build_flags = build_flags =

Loading…
Cancel
Save