Merge pull request #2428 from recrof/minewsemi-refactor

minewsemi: refactor platformio.ini
This commit is contained in:
Liam Cottle
2026-05-01 00:56:32 +12:00
committed by GitHub

View File

@@ -1,175 +1,151 @@
; ----------------- NRF52 me25ls01--------------------- [me25ls01]
[nrf52840_me25ls01] extends = nrf52_base
extends = nrf52_base board = minewsemi_me25ls01
platform_packages = framework-arduinoadafruitnrf52 board_build.ldscript = boards/nrf52840_s140_v7.ld
build_flags = ${nrf52_base.build_flags} build_flags = ${nrf52_base.build_flags}
-I src/helpers/nrf52 -I src/helpers/nrf52
-I lib/nrf52/s140_nrf52_7.3.0_API/include -I lib/nrf52/s140_nrf52_7.3.0_API/include
-I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52 -I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52
lib_ignore = -I variants/minewsemi_me25ls01
BluetoothOTA -D me25ls01
lib5b4 -D PIN_USER_BTN=27
lib_deps = -D PIN_STATUS_LED=39
${nrf52_base.lib_deps} -D P_LORA_TX_LED=22
rweather/Crypto @ ^0.4.0 -D RADIO_CLASS=CustomLR1110
-D WRAPPER_CLASS=CustomLR1110Wrapper
[me25ls01] -D LORA_TX_POWER=22
extends = nrf52840_me25ls01 -D ENV_INCLUDE_GPS=0
board = minewsemi_me25ls01 -D ENV_INCLUDE_AHTX0=1
board_build.ldscript = boards/nrf52840_s140_v7.ld -D ENV_INCLUDE_BME280=1
build_flags = ${nrf52840_me25ls01.build_flags} -D ENV_INCLUDE_INA3221=1
-I variants/minewsemi_me25ls01 -D ENV_INCLUDE_INA219=1
-D me25ls01 build_src_filter = ${nrf52_base.build_src_filter}
-D PIN_USER_BTN=27 +<helpers/*.cpp>
-D PIN_STATUS_LED=39 +<../variants/minewsemi_me25ls01>
-D P_LORA_TX_LED=22 +<helpers/sensors>
-D RADIO_CLASS=CustomLR1110 debug_tool = jlink
-D WRAPPER_CLASS=CustomLR1110Wrapper upload_protocol = nrfutil
-D LORA_TX_POWER=22 lib_deps = ${nrf52_base.lib_deps}
-D ENV_INCLUDE_GPS=0 adafruit/RTClib @ ^2.1.3
-D ENV_INCLUDE_AHTX0=1 densaugeo/base64 @ ~1.4.0
-D ENV_INCLUDE_BME280=1 stevemarple/MicroNMEA @ ^2.0.6
-D ENV_INCLUDE_INA3221=1 end2endzone/NonBlockingRTTTL@^1.3.0
-D ENV_INCLUDE_INA219=1 adafruit/Adafruit SSD1306 @ ^2.5.13
build_src_filter = ${nrf52840_me25ls01.build_src_filter} adafruit/Adafruit INA3221 Library @ ^1.0.1
+<helpers/*.cpp> adafruit/Adafruit INA219 @ ^1.2.3
+<../variants/minewsemi_me25ls01> adafruit/Adafruit AHTX0 @ ^2.0.5
+<helpers/sensors> adafruit/Adafruit BME280 Library @ ^2.3.0
debug_tool = jlink
upload_protocol = nrfutil [env:Minewsemi_me25ls01_companion_radio_ble]
lib_deps = ${nrf52840_me25ls01.lib_deps} extends = me25ls01
densaugeo/base64 @ ~1.4.0 board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
stevemarple/MicroNMEA @ ^2.0.6 board_upload.maximum_size = 708608
end2endzone/NonBlockingRTTTL@^1.3.0 build_flags = ${me25ls01.build_flags}
adafruit/Adafruit SSD1306 @ ^2.5.13 -I examples/companion_radio/ui-orig
adafruit/Adafruit INA3221 Library @ ^1.0.1 -D MAX_CONTACTS=350
adafruit/Adafruit INA219 @ ^1.2.3 -D MAX_GROUP_CHANNELS=40
adafruit/Adafruit AHTX0 @ ^2.0.5 -D BLE_PIN_CODE=123456
adafruit/Adafruit BME280 Library @ ^2.3.0 ; -D BLE_DEBUG_LOGGING=1
-D MESH_PACKET_LOGGING=1
[env:Minewsemi_me25ls01_companion_radio_ble] -D MESH_DEBUG=1
extends = me25ls01 -D OFFLINE_QUEUE_SIZE=256
board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld -D RX_BOOSTED_GAIN=true
board_upload.maximum_size = 708608 -D RF_SWITCH_TABLE
build_flags = ${me25ls01.build_flags} -D DISPLAY_CLASS=NullDisplayDriver
-I examples/companion_radio/ui-orig ;-D PIN_BUZZER=25
-D MAX_CONTACTS=350 ;-D PIN_BUZZER_EN=37
-D MAX_GROUP_CHANNELS=40 build_src_filter = ${me25ls01.build_src_filter}
-D BLE_PIN_CODE=123456 +<helpers/nrf52/SerialBLEInterface.cpp>
; -D BLE_DEBUG_LOGGING=1 +<../examples/companion_radio/*.cpp>
-D MESH_PACKET_LOGGING=1 +<../examples/companion_radio/ui-orig/*.cpp>
-D MESH_DEBUG=1
-D OFFLINE_QUEUE_SIZE=256 [env:Minewsemi_me25ls01_repeater]
-D RX_BOOSTED_GAIN=true extends = me25ls01
-D RF_SWITCH_TABLE build_flags = ${me25ls01.build_flags}
-D DISPLAY_CLASS=NullDisplayDriver -D MAX_CONTACTS=100
;-D PIN_BUZZER=25 -D MAX_GROUP_CHANNELS=8
;-D PIN_BUZZER_EN=37 -D BLE_PIN_CODE=123456
build_src_filter = ${me25ls01.build_src_filter} ; -D BLE_DEBUG_LOGGING=1
+<helpers/nrf52/SerialBLEInterface.cpp> -D MESH_PACKET_LOGGING=1
+<../examples/companion_radio/*.cpp> -D MESH_DEBUG=1
+<../examples/companion_radio/ui-orig/*.cpp> -D OFFLINE_QUEUE_SIZE=256
lib_deps = ${me25ls01.lib_deps} -D RX_BOOSTED_GAIN=true
adafruit/RTClib @ ^2.1.3 -D RF_SWITCH_TABLE
-D ADVERT_NAME='"ME25LS01 Repeater"'
-D ADVERT_LAT=0.0
[env:Minewsemi_me25ls01_repeater] -D ADVERT_LON=0.0
extends = me25ls01 -D ADMIN_PASSWORD='"password"'
build_flags = ${me25ls01.build_flags} -D MAX_NEIGHBOURS=50
-D MAX_CONTACTS=100 -D DISPLAY_CLASS=NullDisplayDriver
-D MAX_GROUP_CHANNELS=8 build_src_filter = ${me25ls01.build_src_filter}
-D BLE_PIN_CODE=123456 +<../examples/simple_repeater>
; -D BLE_DEBUG_LOGGING=1
-D MESH_PACKET_LOGGING=1 [env:Minewsemi_me25ls01_room_server]
-D MESH_DEBUG=1 extends = me25ls01
-D OFFLINE_QUEUE_SIZE=256 build_flags = ${me25ls01.build_flags}
-D RX_BOOSTED_GAIN=true -D MAX_CONTACTS=100
-D RF_SWITCH_TABLE -D MAX_GROUP_CHANNELS=8
-D ADVERT_NAME='"ME25LS01 Repeater"' ; -D BLE_PIN_CODE=123456
-D ADVERT_LAT=0.0 ; -D BLE_DEBUG_LOGGING=1
-D ADVERT_LON=0.0 ; -D MESH_PACKET_LOGGING=1
-D ADMIN_PASSWORD='"password"' ; -D MESH_DEBUG=1
-D MAX_NEIGHBOURS=50 -D OFFLINE_QUEUE_SIZE=256
-D DISPLAY_CLASS=NullDisplayDriver -D RX_BOOSTED_GAIN=true
build_src_filter = ${me25ls01.build_src_filter} -D RF_SWITCH_TABLE
+<../examples/simple_repeater> -D ADVERT_NAME='"ME25LS01 Room"'
lib_deps = ${me25ls01.lib_deps} -D ADVERT_LAT=0.0
adafruit/RTClib @ ^2.1.3 -D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D ROOM_PASSWORD='"hello"'
-D MAX_NEIGHBOURS=50
[env:Minewsemi_me25ls01_room_server] -D DISPLAY_CLASS=NullDisplayDriver
extends = me25ls01 build_src_filter = ${me25ls01.build_src_filter}
build_flags = ${me25ls01.build_flags} +<../examples/simple_room_server>
-D MAX_CONTACTS=100
-D MAX_GROUP_CHANNELS=8 [env:Minewsemi_me25ls01_terminal_chat]
; -D BLE_PIN_CODE=123456 extends = me25ls01
; -D BLE_DEBUG_LOGGING=1 build_flags = ${me25ls01.build_flags}
; -D MESH_PACKET_LOGGING=1 -D MAX_CONTACTS=100
; -D MESH_DEBUG=1 -D MAX_GROUP_CHANNELS=8
-D OFFLINE_QUEUE_SIZE=256 -D BLE_PIN_CODE=123456
-D RX_BOOSTED_GAIN=true ; -D BLE_DEBUG_LOGGING=1
-D RF_SWITCH_TABLE -D MESH_PACKET_LOGGING=1
-D ADVERT_NAME='"ME25LS01 Room"' -D MESH_DEBUG=1
-D ADVERT_LAT=0.0 -D OFFLINE_QUEUE_SIZE=256
-D ADVERT_LON=0.0 -D RX_BOOSTED_GAIN=true
-D ADMIN_PASSWORD='"password"' -D RF_SWITCH_TABLE
-D ROOM_PASSWORD='"hello"' -D ADVERT_NAME='"ME25LS01 Chat"'
-D MAX_NEIGHBOURS=50 -D ADVERT_LAT=0.0
-D DISPLAY_CLASS=NullDisplayDriver -D ADVERT_LON=0.0
build_src_filter = ${me25ls01.build_src_filter} -D ADMIN_PASSWORD='"password"'
+<../examples/simple_room_server> -D ROOM_PASSWORD='"hello"'
lib_deps = ${me25ls01.lib_deps} -D MAX_NEIGHBOURS=50
adafruit/RTClib @ ^2.1.3 -D DISPLAY_CLASS=NullDisplayDriver
build_src_filter = ${me25ls01.build_src_filter}
[env:Minewsemi_me25ls01_terminal_chat] +<../examples/simple_secure_chat/main.cpp>
extends = me25ls01
build_flags = ${me25ls01.build_flags} [env:Minewsemi_me25ls01_companion_radio_usb]
-D MAX_CONTACTS=100 extends = me25ls01
-D MAX_GROUP_CHANNELS=8 board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld
-D BLE_PIN_CODE=123456 board_upload.maximum_size = 708608
; -D BLE_DEBUG_LOGGING=1 build_flags = ${me25ls01.build_flags}
-D MESH_PACKET_LOGGING=1 -I examples/companion_radio/ui-orig
-D MESH_DEBUG=1 -D MAX_CONTACTS=350
-D OFFLINE_QUEUE_SIZE=256 -D MAX_GROUP_CHANNELS=40
-D RX_BOOSTED_GAIN=true ;-D BLE_PIN_CODE=123456
-D RF_SWITCH_TABLE ; -D BLE_DEBUG_LOGGING=1
-D ADVERT_NAME='"ME25LS01 Chat"' -D MESH_PACKET_LOGGING=1
-D ADVERT_LAT=0.0 -D MESH_DEBUG=1
-D ADVERT_LON=0.0 -D OFFLINE_QUEUE_SIZE=256
-D ADMIN_PASSWORD='"password"' -D RX_BOOSTED_GAIN=true
-D ROOM_PASSWORD='"hello"' -D RF_SWITCH_TABLE
-D MAX_NEIGHBOURS=50 -D DISPLAY_CLASS=NullDisplayDriver
-D DISPLAY_CLASS=NullDisplayDriver build_src_filter = ${me25ls01.build_src_filter}
build_src_filter = ${me25ls01.build_src_filter} +<helpers/nrf52/*.cpp>
+<../examples/simple_secure_chat/main.cpp> +<../examples/companion_radio/*.cpp>
lib_deps = ${me25ls01.lib_deps} +<../examples/companion_radio/ui-orig/*.cpp>
adafruit/RTClib @ ^2.1.3
[env:Minewsemi_me25ls01_kiss_modem]
[env:Minewsemi_me25ls01_companion_radio_usb] extends = me25ls01
extends = me25ls01 build_src_filter = ${me25ls01.build_src_filter}
board_build.ldscript = boards/nrf52840_s140_v7_extrafs.ld +<../examples/kiss_modem/>
board_upload.maximum_size = 708608
build_flags = ${me25ls01.build_flags}
-I examples/companion_radio/ui-orig
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
;-D BLE_PIN_CODE=123456
; -D BLE_DEBUG_LOGGING=1
-D MESH_PACKET_LOGGING=1
-D MESH_DEBUG=1
-D OFFLINE_QUEUE_SIZE=256
-D RX_BOOSTED_GAIN=true
-D RF_SWITCH_TABLE
-D DISPLAY_CLASS=NullDisplayDriver
build_src_filter = ${me25ls01.build_src_filter}
+<helpers/nrf52/*.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-orig/*.cpp>
lib_deps = ${me25ls01.lib_deps}
adafruit/RTClib @ ^2.1.3
[env:Minewsemi_me25ls01_kiss_modem]
extends = me25ls01
build_src_filter = ${me25ls01.build_src_filter}
+<../examples/kiss_modem/>