File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
examples/tests/multi_alarm_dont_ignore_previous_overflow Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Test Multiple Alarms (Ensure previous overflowing alarms aren't ignore)
2
2
3
3
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
9
14
10
15
When successful, the first alarm should fire after a clock overflow +
11
16
1 second, while the third should fire after a clock overflow + 10ms +
You can’t perform that action at this time.
0 commit comments