github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/runtime/runtime_stm32.go (about)

     1  //go:build stm32
     2  
     3  package runtime
     4  
     5  import "device/arm"
     6  
     7  type timeUnit int64
     8  
     9  //export Reset_Handler
    10  func main() {
    11  	preinit()
    12  	run()
    13  	exit(0)
    14  }
    15  
    16  func waitForEvents() {
    17  	arm.Asm("wfe")
    18  }