mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-19 22:23:58 +00:00
WIP continuing
This commit now requires tinygo_task_current which I've patched in my local TinyGo build.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user