WIP continuing

This commit now requires tinygo_task_current which I've patched in my
local TinyGo build.
This commit is contained in:
Ayke van Laethem
2024-01-28 13:51:25 +01:00
parent 8b3d323f1b
commit 9ca474466d
5 changed files with 177 additions and 54 deletions
+5 -1
View File
@@ -6,7 +6,7 @@ import "device/esp"
func initHardware() error {
// See:
// https://github.com/esp-rs/esp-wifi/blob/main/esp-wifi/src/common_adapter/common_adapter_esp32c3.rs#L18
// https://github.com/esp-rs/esp-wifi/blob/v0.2.0/esp-wifi/src/common_adapter/common_adapter_esp32c3.rs#L18
const (
SYSTEM_WIFIBB_RST = 1 << 0
@@ -35,3 +35,7 @@ func initHardware() error {
return nil
}
// This is the value used for the ESP32-C3, see:
// https://github.com/esp-rs/esp-wifi/blob/v0.2.0/esp-wifi/src/timer/riscv.rs#L28
const ticksPerSecond = 16_000_000