mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-24 22:02:30 +00:00
USE_PACKET_API compiler switch
This commit is contained in:
parent
9eda643ddf
commit
d369c5b89e
@ -12,7 +12,7 @@ build_flags =
|
|||||||
-D__PLAT_RP2040__
|
-D__PLAT_RP2040__
|
||||||
# -D _POSIX_THREADS
|
# -D _POSIX_THREADS
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<modules/esp32> -<platform/nrf52/> -<platform/stm32wl> -<mesh/eth/> -<mesh/wifi/> -<mesh/http/> -<mesh/sharedMem> -<mesh/api/PacketAPI.cpp> -<mesh/raspihttp>
|
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<modules/esp32> -<platform/nrf52/> -<platform/stm32wl> -<mesh/eth/> -<mesh/wifi/> -<mesh/http/> -<mesh/sharedMem> -<mesh/raspihttp>
|
||||||
|
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
BluetoothOTA
|
BluetoothOTA
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#ifdef USE_PACKET_API
|
||||||
|
|
||||||
#include "api/PacketAPI.h"
|
#include "api/PacketAPI.h"
|
||||||
#include "MeshService.h"
|
#include "MeshService.h"
|
||||||
#include "RadioInterface.h"
|
#include "RadioInterface.h"
|
||||||
@ -73,3 +75,5 @@ bool PacketAPI::checkIsConnected()
|
|||||||
isConnected |= server->hasData();
|
isConnected |= server->hasData();
|
||||||
return isConnected && server->available();
|
return isConnected && server->available();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
@ -4,7 +4,7 @@ extends = nrf52840_base
|
|||||||
board = wiscore_rak4631
|
board = wiscore_rak4631
|
||||||
build_flags = ${nrf52840_base.build_flags} -Ivariants/monteops_hw1 -D MONTEOPS_HW1
|
build_flags = ${nrf52840_base.build_flags} -Ivariants/monteops_hw1 -D MONTEOPS_HW1
|
||||||
-L "${platformio.libdeps_dir}/${this.__env__}/BSEC2 Software Library/src/cortex-m4/fpv4-sp-d16-hard"
|
-L "${platformio.libdeps_dir}/${this.__env__}/BSEC2 Software Library/src/cortex-m4/fpv4-sp-d16-hard"
|
||||||
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/monteops_hw1> +<mesh/eth/> +<mesh/api/> +<mqtt/> -<mesh/api/PacketAPI.cpp>
|
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/monteops_hw1> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${nrf52840_base.lib_deps}
|
${nrf52840_base.lib_deps}
|
||||||
${networking_base.lib_deps}
|
${networking_base.lib_deps}
|
||||||
|
@ -10,6 +10,38 @@ lib_deps = ${portduino_base.lib_deps}
|
|||||||
lovyan03/LovyanGFX@^1.1.12
|
lovyan03/LovyanGFX@^1.1.12
|
||||||
build_src_filter = ${portduino_base.build_src_filter}
|
build_src_filter = ${portduino_base.build_src_filter}
|
||||||
|
|
||||||
|
[env:native-tft-320x240]
|
||||||
|
extends = portduino_base
|
||||||
|
build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsanitize=address
|
||||||
|
-I variants/portduino
|
||||||
|
-I /usr/include
|
||||||
|
-D DEBUG_HEAP
|
||||||
|
-D RAM_SIZE=4096
|
||||||
|
-D HAS_TFT=1
|
||||||
|
-D HAS_SCREEN=0
|
||||||
|
-D LV_BUILD_TEST=0
|
||||||
|
-D LV_LVGL_H_INCLUDE_SIMPLE
|
||||||
|
-D LV_CONF_INCLUDE_SIMPLE
|
||||||
|
-D LV_COMP_CONF_INCLUDE_SIMPLE
|
||||||
|
-D USE_LOG_DEBUG
|
||||||
|
-D LOG_DEBUG_INC=\"DebugConfiguration.h\"
|
||||||
|
-D USE_PACKET_API
|
||||||
|
-I lib/device-ui/generated/ui_320x240
|
||||||
|
; The pkg-config commands below optionally add link flags.
|
||||||
|
; the || : is just a "or run the null command" to avoid returning an error code
|
||||||
|
!pkg-config --libs libulfius --silence-errors || :
|
||||||
|
!pkg-config --libs openssl --silence-errors || :
|
||||||
|
board = cross_platform
|
||||||
|
lib_deps = ${portduino_base.lib_deps}
|
||||||
|
lovyan03/LovyanGFX@^1.1.12
|
||||||
|
build_src_filter = ${portduino_base.build_src_filter}
|
||||||
|
-<graphics/TFTDisplay.cpp>
|
||||||
|
+<../lib/device-ui/generated/ui_320x240>
|
||||||
|
+<../lib/device-ui/generated/ui_320x240/fonts>
|
||||||
|
+<../lib/device-ui/resources>
|
||||||
|
+<../lib/device-ui/source>
|
||||||
|
+<mesh/sharedMem/>
|
||||||
|
|
||||||
[env:native-x11-320x240]
|
[env:native-x11-320x240]
|
||||||
extends = portduino_base
|
extends = portduino_base
|
||||||
build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsanitize=address -lX11
|
build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsanitize=address -lX11
|
||||||
@ -30,10 +62,12 @@ build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsaniti
|
|||||||
-D LV_COMP_CONF_INCLUDE_SIMPLE
|
-D LV_COMP_CONF_INCLUDE_SIMPLE
|
||||||
-D USE_LOG_DEBUG
|
-D USE_LOG_DEBUG
|
||||||
-D LOG_DEBUG_INC=\"DebugConfiguration.h\"
|
-D LOG_DEBUG_INC=\"DebugConfiguration.h\"
|
||||||
|
-D USE_PACKET_API
|
||||||
-I lib/device-ui/generated/ui_320x240
|
-I lib/device-ui/generated/ui_320x240
|
||||||
board = cross_platform
|
board = cross_platform
|
||||||
lib_deps = ${portduino_base.lib_deps}
|
lib_deps = ${portduino_base.lib_deps}
|
||||||
https://github.com/lvgl/lv_drivers.git ; x11 is currently only supported in master branch, not in 8.3.0
|
; x11 is currently only supported in master branch, not in 6.1.1
|
||||||
|
https://github.com/lvgl/lv_drivers.git#110089d7f4be4df34aa7efc17c8cdd911e562846
|
||||||
build_src_filter = ${portduino_base.build_src_filter}
|
build_src_filter = ${portduino_base.build_src_filter}
|
||||||
-<graphics/TFTDisplay.cpp>
|
-<graphics/TFTDisplay.cpp>
|
||||||
+<../lib/device-ui/generated/ui_320x240>
|
+<../lib/device-ui/generated/ui_320x240>
|
||||||
|
@ -8,7 +8,7 @@ build_flags = ${nrf52840_base.build_flags} -Ivariants/rak10701 -D RAK_4631
|
|||||||
-DEINK_DISPLAY_MODEL=GxEPD2_213_BN
|
-DEINK_DISPLAY_MODEL=GxEPD2_213_BN
|
||||||
-DEINK_WIDTH=250
|
-DEINK_WIDTH=250
|
||||||
-DEINK_HEIGHT=122
|
-DEINK_HEIGHT=122
|
||||||
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak10701> +<mesh/eth/> +<mesh/api/> +<mqtt/> -<mesh/api/PacketAPI.cpp>
|
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak10701> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${nrf52840_base.lib_deps}
|
${nrf52840_base.lib_deps}
|
||||||
${networking_base.lib_deps}
|
${networking_base.lib_deps}
|
||||||
|
@ -8,7 +8,7 @@ build_flags = ${nrf52840_base.build_flags} -Ivariants/rak4631 -D RAK_4631
|
|||||||
-DEINK_DISPLAY_MODEL=GxEPD2_213_BN
|
-DEINK_DISPLAY_MODEL=GxEPD2_213_BN
|
||||||
-DEINK_WIDTH=250
|
-DEINK_WIDTH=250
|
||||||
-DEINK_HEIGHT=122
|
-DEINK_HEIGHT=122
|
||||||
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak4631> +<mesh/eth/> +<mesh/api/> +<mqtt/> -<mesh/api/PacketAPI.cpp>
|
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak4631> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${nrf52840_base.lib_deps}
|
${nrf52840_base.lib_deps}
|
||||||
${networking_base.lib_deps}
|
${networking_base.lib_deps}
|
||||||
|
@ -24,6 +24,7 @@ build_flags = ${esp32_base.build_flags} -fno-omit-frame-pointer
|
|||||||
-D VIEW_CLASS=TFTView_320x240
|
-D VIEW_CLASS=TFTView_320x240
|
||||||
-D VIEW_CLASS_INC=\"TFTView_320x240.h\"
|
-D VIEW_CLASS_INC=\"TFTView_320x240.h\"
|
||||||
; -D USE_DOUBLE_BUFFER
|
; -D USE_DOUBLE_BUFFER
|
||||||
|
-D USE_PACKET_API
|
||||||
-I lib/device-ui/generated/ui_320x240
|
-I lib/device-ui/generated/ui_320x240
|
||||||
-I variants/t-deck
|
-I variants/t-deck
|
||||||
build_src_filter = ${esp32_base.build_src_filter}
|
build_src_filter = ${esp32_base.build_src_filter}
|
||||||
|
Loading…
Reference in New Issue
Block a user