github.com/aykevl/tinygo@v0.5.0/src/runtime/runtime_attiny.go (about) 1 // +build avr,attiny 2 3 package runtime 4 5 import ( 6 "device/avr" 7 ) 8 9 func sleepWDT(period uint8) { 10 // TODO: use the watchdog timer instead of a busy loop. 11 for i := 0x45; i != 0; i-- { 12 for i := 0xff; i != 0; i-- { 13 avr.Asm("nop") 14 } 15 } 16 }