tinygo/src/runtime/runtime_stm32.go
Ayke van Laethem 9d625a1ccb nrf: call sd_app_evt_wait when the SoftDevice is enabled
This reduces current consumption from 500-1000µA to very low (<10µA)
current consumption. This change is important for battery powered
devices, especially devices that may be running for long periods of
time.
2020-08-24 22:46:21 +02:00

20 строки
204 Б
Go

// +build stm32
package runtime
import "device/arm"
type timeUnit int64
func postinit() {}
//export Reset_Handler
func main() {
preinit()
run()
abort()
}
func waitForEvents() {
arm.Asm("wfe")
}