Skip to content

Commit

Permalink
doc: fix a typo in the rtcinterrupt example (tinygo-org#3981)
Browse files Browse the repository at this point in the history
docs: fix a typo in the rtcinterrupt example, also provide a link to the interrupt online doc
  • Loading branch information
graugans authored and crypto-smoke committed Feb 14, 2024
1 parent 0b25d5f commit 46557e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/examples/rtcinterrupt/rtcinterrupt.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func main() {

// Schedule and enable recurring interrupt.
// The callback function is executed in the context of an interrupt handler,
// so regular restructions for this sort of code apply: no blocking, no memory allocation, etc.
// 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!") })

Expand Down

0 comments on commit 46557e7

Please sign in to comment.