Refactor sleep handling and WASM task termination; consolidate platform-specific sleep functions and improve task cleanup logic
This commit is contained in:
+5
-1
@@ -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
@@ -5,7 +5,7 @@ pub fn main() void {
|
||||
while (true) {
|
||||
nova64.log("Hello from Zig!");
|
||||
// nova64.yield();
|
||||
// nova64.sleep(1000);
|
||||
nova64.sleep(50);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user