blob: 58fff2ec45592073dfd5a8c24da968dad8e9fb32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
menu "RTC Test"
depends on RT_USING_RTC
config RT_UTEST_RTC
bool "RTC Time Test"
default n
help
Validate RTC timestamp set/get and time advancement. The test changes
the RTC time and restores it after completion.
config RT_UTEST_RTC_ALARM
bool "RTC Alarm Test"
depends on RT_USING_ALARM
depends on RT_USING_HEAP
default n
help
Validate one-shot alarm delivery using the current RTC time. The test
reapplies the current time to start the RTC counter and changes the
alarm, so no application may use them while the test runs.
if RT_UTEST_RTC_ALARM
config RT_RTC_TC_ALARM_DELAY_SEC
int "Alarm Delay in Seconds"
range 3 120
default 15
help
Delay between reading the current RTC time and the one-shot alarm.
config RT_RTC_TC_ALARM_TIMEOUT_SEC
int "Alarm Timeout in Seconds"
range 4 180
default 25
help
Maximum time to wait for the alarm callback. Keep this greater
than the configured alarm delay.
endif
endmenu
|