Skip to content

Commit 889478c

Browse files
alevytyler-potyondy
andcommitted
test: multi_alarm: Add diagram for timer expiration
Co-authored-by: Tyler Potyondy <[email protected]>
1 parent 9e3c648 commit 889478c

File tree

1 file changed

+10
-5
lines changed
  • examples/tests/multi_alarm_dont_ignore_previous_overflow

1 file changed

+10
-5
lines changed

examples/tests/multi_alarm_dont_ignore_previous_overflow/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Test Multiple Alarms (Ensure previous overflowing alarms aren't ignore)
22

33
This tests the virtual alarms available to userspace. It sets three
4-
alarms alarms. The first two overflow and should result in multiple
5-
alarms under the hood, and a third a 10 second alarm started after the
6-
second. The first alarm is set first, but expires second (1 second
7-
after overflow vs 10ms after overflow). The third alarm should expire
8-
last.
4+
alarms. The first two overflow and should result in multiple
5+
alarms under the hood, and a third 10 second alarm started after the
6+
second alarm fires. The first alarm is set first, but expires second
7+
(1 second after overflow vs 10ms after overflow). The third alarm
8+
should expire last.
9+
10+
(Not to scale; demonstrating alarm firing order)
11+
Alarm 1 (Overflow + 1s) ---Set----------------------Fires--------------
12+
Alarm 2 (Overflow + 10ms) --------Set------Fires -------------------
13+
Alarm 3 (Overflow + 10ms + 10s) --------------Set------------Fires
914

1015
When successful, the first alarm should fire after a clock overflow +
1116
1 second, while the third should fire after a clock overflow + 10ms +

0 commit comments

Comments
 (0)