mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Cleanup
Added board definition. .INI file cleanup
This commit is contained in:
parent
8f3c7d4c0b
commit
7a8fdd56fa
3 changed files with 52 additions and 11 deletions
37
boards/radiomaster_bandit.json
Normal file
37
boards/radiomaster_bandit.json
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"arduino": {
|
||||||
|
"ldscript": "esp32_out.ld",
|
||||||
|
"partitions": "default_8MB.csv"
|
||||||
|
},
|
||||||
|
"core": "esp32",
|
||||||
|
"extra_flags": "-DARDUINO_RADIOMASTER_BANDIT -DARDUINO_ARCH_ESP32",
|
||||||
|
"f_cpu": "240000000L",
|
||||||
|
"f_flash": "40000000L",
|
||||||
|
"flash_mode": "dio",
|
||||||
|
"mcu": "esp32",
|
||||||
|
"variant": "esp32"
|
||||||
|
},
|
||||||
|
"connectivity": [
|
||||||
|
"wifi",
|
||||||
|
"bluetooth",
|
||||||
|
"ethernet"
|
||||||
|
],
|
||||||
|
"debug": {
|
||||||
|
"openocd_board": "esp-wroom-32.cfg"
|
||||||
|
},
|
||||||
|
"frameworks": [
|
||||||
|
"arduino",
|
||||||
|
"espidf"
|
||||||
|
],
|
||||||
|
"name": "Radiomaster Bandit",
|
||||||
|
"upload": {
|
||||||
|
"flash_size": "8MB",
|
||||||
|
"maximum_ram_size": 327680,
|
||||||
|
"maximum_size": 8388608,
|
||||||
|
"require_upload_port": true,
|
||||||
|
"speed": 460800
|
||||||
|
},
|
||||||
|
"url": "https://www.espressif.com/en/products/socs/esp32",
|
||||||
|
"vendor": "Espressif"
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
[radiomaster_900_bandit]
|
[radiomaster_900_bandit]
|
||||||
extends = esp32_base
|
extends = esp32_base
|
||||||
board = esp32dev
|
board = radiomaster_bandit
|
||||||
#upload_flags = --before default_reset
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-I variants/radiomaster_900_bandit
|
-I variants/radiomaster_900_bandit
|
||||||
|
|
@ -22,15 +21,13 @@ build_flags =
|
||||||
-D PIN_BOARD_SCL=12
|
-D PIN_BOARD_SCL=12
|
||||||
-D PIN_USER_JOYSTICK=39
|
-D PIN_USER_JOYSTICK=39
|
||||||
-D ENV_INCLUDE_GPS=0
|
-D ENV_INCLUDE_GPS=0
|
||||||
|
|
||||||
build_src_filter = ${esp32_base.build_src_filter}
|
build_src_filter = ${esp32_base.build_src_filter}
|
||||||
+<../variants/radiomaster_900_bandit>
|
+<../variants/radiomaster_900_bandit>
|
||||||
+<helpers/ui/AnalogJoystick.cpp>
|
+<helpers/ui/AnalogJoystick.cpp>
|
||||||
+<helpers/ui/SH1115Display.cpp>
|
+<helpers/ui/SH1115Display.cpp>
|
||||||
+<helpers/sensors>
|
+<helpers/sensors>
|
||||||
|
|
||||||
board_upload.flash_size = 8MB
|
|
||||||
board_build.partitions = default_8MB.csv
|
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32_base.lib_deps}
|
${esp32_base.lib_deps}
|
||||||
adafruit/Adafruit NeoPixel@^1.10.0
|
adafruit/Adafruit NeoPixel@^1.10.0
|
||||||
|
|
@ -38,7 +35,6 @@ lib_deps =
|
||||||
|
|
||||||
[env:radiomaster_900_bandit_companion_radio_ble]
|
[env:radiomaster_900_bandit_companion_radio_ble]
|
||||||
extends = radiomaster_900_bandit
|
extends = radiomaster_900_bandit
|
||||||
board_build.upload.maximum_ram_size=2000000
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${radiomaster_900_bandit.build_flags}
|
${radiomaster_900_bandit.build_flags}
|
||||||
-I examples/companion_radio/ui-new
|
-I examples/companion_radio/ui-new
|
||||||
|
|
@ -50,11 +46,13 @@ build_flags =
|
||||||
; -D RADIOLIB_DEBUG_BASIC=1
|
; -D RADIOLIB_DEBUG_BASIC=1
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<helpers/ui/MomentaryButton.cpp>
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../examples/companion_radio/ui-new/*.cpp>
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit.lib_deps}
|
${radiomaster_900_bandit.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
|
|
@ -71,8 +69,10 @@ build_flags =
|
||||||
-D PERSISTANT_GPS=1
|
-D PERSISTANT_GPS=1
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit.lib_deps}
|
${radiomaster_900_bandit.lib_deps}
|
||||||
${esp32_ota.lib_deps}
|
${esp32_ota.lib_deps}
|
||||||
|
|
@ -87,8 +87,10 @@ build_flags =
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit.build_src_filter}
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit.lib_deps}
|
${radiomaster_900_bandit.lib_deps}
|
||||||
${esp32_ota.lib_deps}
|
${esp32_ota.lib_deps}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[radiomaster_900_bandit_nano]
|
[radiomaster_900_bandit_nano]
|
||||||
extends = esp32_base
|
extends = esp32_base
|
||||||
board = esp32dev
|
board = radiomaster_bandit
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-I variants/radiomaster_900_bandit_nano
|
-I variants/radiomaster_900_bandit_nano
|
||||||
|
|
@ -34,16 +34,12 @@ build_src_filter = ${esp32_base.build_src_filter}
|
||||||
+<helpers/ui/SSD1306Display.cpp>
|
+<helpers/ui/SSD1306Display.cpp>
|
||||||
+<helpers/sensors>
|
+<helpers/sensors>
|
||||||
|
|
||||||
board_upload.flash_size = 8MB
|
|
||||||
board_build.partitions = default_8MB.csv
|
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32_base.lib_deps}
|
${esp32_base.lib_deps}
|
||||||
adafruit/Adafruit SSD1306 @ ^2.5.13
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
||||||
|
|
||||||
[env:radiomaster_900_bandit_nano_companion_radio_ble]
|
[env:radiomaster_900_bandit_nano_companion_radio_ble]
|
||||||
extends = radiomaster_900_bandit_nano
|
extends = radiomaster_900_bandit_nano
|
||||||
;board_build.upload.maximum_ram_size=2000000
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${radiomaster_900_bandit_nano.build_flags}
|
${radiomaster_900_bandit_nano.build_flags}
|
||||||
-I examples/companion_radio/ui-new
|
-I examples/companion_radio/ui-new
|
||||||
|
|
@ -55,11 +51,13 @@ build_flags =
|
||||||
; -D RADIOLIB_DEBUG_BASIC=1
|
; -D RADIOLIB_DEBUG_BASIC=1
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<helpers/ui/MomentaryButton.cpp>
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../examples/companion_radio/ui-new/*.cpp>
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit_nano.lib_deps}
|
${radiomaster_900_bandit_nano.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
|
|
@ -76,8 +74,10 @@ build_flags =
|
||||||
-D PERSISTANT_GPS=1
|
-D PERSISTANT_GPS=1
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit_nano.lib_deps}
|
${radiomaster_900_bandit_nano.lib_deps}
|
||||||
${esp32_ota.lib_deps}
|
${esp32_ota.lib_deps}
|
||||||
|
|
@ -92,8 +92,10 @@ build_flags =
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
|
||||||
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
build_src_filter = ${radiomaster_900_bandit_nano.build_src_filter}
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${radiomaster_900_bandit_nano.lib_deps}
|
${radiomaster_900_bandit_nano.lib_deps}
|
||||||
${esp32_ota.lib_deps}
|
${esp32_ota.lib_deps}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue