Refactor sleep handling and WASM task termination; consolidate platform-specific sleep functions and improve task cleanup logic

This commit is contained in:
Lukas Höppner
2026-08-12 14:25:21 +02:00
parent b04ba14891
commit bc78ce3534
6 changed files with 35 additions and 37 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
pushd "%~dp0"
@REM tinygo build -o ../simulator/sd/slot0/init.wasm -target wasm-unknown init.go
@REM zig build-exe init.zig -target wasm32-freestanding -fno-entry -O ReleaseSmall -femit-bin=../simulator/sd/slot0/init.wasm
zig build-exe init.zig -target wasm32-freestanding -O ReleaseSmall -femit-bin=../simulator/sd/slot0/init.wasm
zig build-exe init.zig -target wasm32-freestanding -O ReleaseSmall -femit-bin=../simulator/sd/slot0/init.wasm
popd
+1 -1
View File
@@ -5,7 +5,7 @@ pub fn main() void {
while (true) {
nova64.log("Hello from Zig!");
// nova64.yield();
// nova64.sleep(1000);
nova64.sleep(50);
}
}