From 70efd41dbc1f643f37266ffa54779ea5b6c21b6f Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Wed, 1 Nov 2023 09:35:15 +0100 Subject: [PATCH] doc: provide a link to the interrupt online doc The examples shall be short and not overloaded with too much information. The details can be read up in the documentation. Signed-off-by: Christian Ege --- src/examples/rtcinterrupt/rtcinterrupt.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/examples/rtcinterrupt/rtcinterrupt.go b/src/examples/rtcinterrupt/rtcinterrupt.go index 1f1a6f814e..83d30bcc68 100644 --- a/src/examples/rtcinterrupt/rtcinterrupt.go +++ b/src/examples/rtcinterrupt/rtcinterrupt.go @@ -25,6 +25,8 @@ func main() { // Schedule and enable recurring interrupt. // The callback function is executed in the context of an interrupt handler, // so regular restrictions for this sort of code apply: no blocking, no memory allocation, etc. + // Please check the online documentation for the details about interrupts: + // https://tinygo.org/docs/concepts/compiler-internals/interrupts/ delay := time.Minute + 12*time.Second machine.RTC.SetInterrupt(uint32(delay.Seconds()), true, func() { println("Peekaboo!") })