@geastack/targets 0.1.105 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/targets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.106",
|
|
4
4
|
"description": "Native embedded build targets (ESP32-IDF, RP2350) for geastack apps: board sources, target catalog, and CMake glue driven by the gea CLI.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@geastack/chips": "^0.1.6",
|
|
40
|
-
"@geastack/compiler": "^1.0.
|
|
41
|
-
"@geastack/core": "0.1.
|
|
40
|
+
"@geastack/compiler": "^1.0.39",
|
|
41
|
+
"@geastack/core": "0.1.46",
|
|
42
42
|
"@geastack/elements": "^0.1.6",
|
|
43
|
-
"@geastack/engine": "^0.1.
|
|
43
|
+
"@geastack/engine": "^0.1.19",
|
|
44
44
|
"@geastack/geaos": "^0.1.3",
|
|
45
|
-
"@geastack/geatsc-plugin-gea": "0.1.
|
|
46
|
-
"@geastack/host": "0.1.
|
|
45
|
+
"@geastack/geatsc-plugin-gea": "0.1.25",
|
|
46
|
+
"@geastack/host": "0.1.20"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"test": "for f in $(git ls-files | grep -E '(^|/)(test[-_][^/]*|[^/]*\\.test)\\.mjs$'); do echo \"==> $f\"; node \"$f\" || exit 1; done"
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
#endif
|
|
8
8
|
#include "services/comparison_upload_capture.h"
|
|
9
9
|
|
|
10
|
+
#include <atomic>
|
|
10
11
|
#include <cstddef>
|
|
11
12
|
#include <cstdint>
|
|
12
13
|
#include <cstring>
|
|
@@ -255,7 +256,11 @@ namespace gea::platform::esp32::chip_bindings::co5300
|
|
|
255
256
|
|
|
256
257
|
Panel &Panel::instance()
|
|
257
258
|
{
|
|
259
|
+
// Reached for every flush window; see DisplayBackend::instance().
|
|
260
|
+
static std::atomic<Panel *> ready{nullptr};
|
|
261
|
+
if (auto *panel = ready.load(std::memory_order_acquire)) return *panel;
|
|
258
262
|
static Panel panel;
|
|
263
|
+
ready.store(&panel, std::memory_order_release);
|
|
259
264
|
return panel;
|
|
260
265
|
}
|
|
261
266
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include "displays/rm690b0/rm690b0.h"
|
|
10
10
|
#endif
|
|
11
11
|
|
|
12
|
+
#include <atomic>
|
|
12
13
|
#include <cstddef>
|
|
13
14
|
#include <cstdint>
|
|
14
15
|
#include <cstring>
|
|
@@ -272,7 +273,11 @@ namespace gea::platform::esp32::chip_bindings::sh8601
|
|
|
272
273
|
|
|
273
274
|
Panel &Panel::instance()
|
|
274
275
|
{
|
|
276
|
+
// Reached for every flush window; see DisplayBackend::instance().
|
|
277
|
+
static std::atomic<Panel *> ready{nullptr};
|
|
278
|
+
if (auto *panel = ready.load(std::memory_order_acquire)) return *panel;
|
|
275
279
|
static Panel panel;
|
|
280
|
+
ready.store(&panel, std::memory_order_release);
|
|
276
281
|
return panel;
|
|
277
282
|
}
|
|
278
283
|
|
|
@@ -643,7 +643,12 @@ namespace gea::platform::esp32::display
|
|
|
643
643
|
public:
|
|
644
644
|
static DisplayBackend &instance()
|
|
645
645
|
{
|
|
646
|
+
// Reached on every draw call. Without hardware atomics a guarded static
|
|
647
|
+
// takes an RTOS mutex per access, so later calls take this plain load.
|
|
648
|
+
static std::atomic<DisplayBackend *> ready{nullptr};
|
|
649
|
+
if (auto *backend = ready.load(std::memory_order_acquire)) return *backend;
|
|
646
650
|
static DisplayBackend backend;
|
|
651
|
+
ready.store(&backend, std::memory_order_release);
|
|
647
652
|
return backend;
|
|
648
653
|
}
|
|
649
654
|
|
|
@@ -221,6 +221,14 @@ set(GEA_FW_APP_SENSITIVE_SOURCES
|
|
|
221
221
|
)
|
|
222
222
|
list(REMOVE_ITEM GEA_FW_CXX_SOURCES ${GEA_FW_APP_SENSITIVE_SOURCES})
|
|
223
223
|
|
|
224
|
+
# The plugin's node analysis proved the app creates no <video> element: the
|
|
225
|
+
# frame loop skips video presentation, so link neither the video host nor the
|
|
226
|
+
# MJPEG reader only it uses. Older or opaque analyses keep both.
|
|
227
|
+
if(";${GEA_EMBEDDED_APP_DEFINES};" MATCHES ";GEA_UI_VIDEO_NODES=0;")
|
|
228
|
+
list(REMOVE_ITEM GEA_FW_CXX_SOURCES "${GEA_HOST}/host/video.cpp")
|
|
229
|
+
list(REMOVE_ITEM GEA_FW_APP_SENSITIVE_SOURCES "${GEA_HOST}/host/mjpeg.cpp")
|
|
230
|
+
endif()
|
|
231
|
+
|
|
224
232
|
# The direct-canvas profiling apps intentionally use a small framework slice.
|
|
225
233
|
# Reproduce that slice in the stable component instead of compiling the normal
|
|
226
234
|
# framework and relying on the linker to discard it.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#include "touch.h" // Touchscreen::injectEvent for GEADEV DRAG/SWIPE
|
|
20
20
|
#include "wifi.h" // network::wifi() for GEADEV PING ip=/mac=
|
|
21
21
|
#include "host/video.h"
|
|
22
|
+
#include "ui/node_features.h"
|
|
22
23
|
|
|
23
24
|
extern "C" uint32_t gea_display_completed_chunks() __attribute__((weak));
|
|
24
25
|
extern "C" bool gea_display_wait_for_uploads() __attribute__((weak));
|
|
@@ -2398,13 +2399,18 @@ void handleCommand(char *line, CommandSource source)
|
|
|
2398
2399
|
printTaskDiagnostics(false);
|
|
2399
2400
|
std::puts("GEADEV:TASKSTATS END");
|
|
2400
2401
|
} else if (tokenEquals(command, "VIDEOSTATS")) {
|
|
2402
|
+
#if !defined(GEA_UI_VIDEO_NODES) || GEA_UI_VIDEO_NODES
|
|
2401
2403
|
gea::framework::services::AppState::lock();
|
|
2402
2404
|
const auto stats = gea::host::HTMLVideoElement::presentationStats();
|
|
2403
2405
|
gea::framework::services::AppState::unlock();
|
|
2404
2406
|
std::printf("GEADEV:VIDEOSTATS decoded=%u selected=%u max_gap_ms=%u dma_chunks=%u\n",
|
|
2405
2407
|
unsigned(stats.decoded), unsigned(stats.selected), unsigned(stats.maxGapMs),
|
|
2406
2408
|
unsigned(gea_display_completed_chunks ? gea_display_completed_chunks() : 0));
|
|
2409
|
+
#else
|
|
2410
|
+
std::puts("GEADEV:ERR VIDEOSTATS unavailable");
|
|
2411
|
+
#endif
|
|
2407
2412
|
} else if (tokenEquals(command, "VIDEO")) {
|
|
2413
|
+
#if !defined(GEA_UI_VIDEO_NODES) || GEA_UI_VIDEO_NODES
|
|
2408
2414
|
// Replay a local diagnostic clip through the real video/render path,
|
|
2409
2415
|
// without creating a hosted session or opening microphone hardware.
|
|
2410
2416
|
static gea::host::HTMLVideoElement retainedVideo;
|
|
@@ -2441,6 +2447,10 @@ void handleCommand(char *line, CommandSource source)
|
|
|
2441
2447
|
gea::framework::services::AppState::unlock();
|
|
2442
2448
|
std::printf("GEADEV:VIDEO %s\n", found ? "OK" : "missing-node");
|
|
2443
2449
|
}
|
|
2450
|
+
#else
|
|
2451
|
+
// The app has no <video> node, so the build omits the video host.
|
|
2452
|
+
std::puts("GEADEV:ERR VIDEO unavailable");
|
|
2453
|
+
#endif
|
|
2444
2454
|
} else if (tokenEquals(command, "TOUCH")) {
|
|
2445
2455
|
#if GEA_EMBEDDED_COMPARISON_BENCHMARK
|
|
2446
2456
|
if (gea::platform::comparison::enabled.load(std::memory_order_acquire)) {
|