Mistake on this page?
Report an issue in GitHub or email us
watchdog_reset_tests.h
1 /*
2  * Copyright (c) 2018-2019 Arm Limited and affiliates.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /**
19  * @addtogroup hal_watchdog_tests
20  * @{
21  */
22 
23 #ifndef MBED_HAL_WATCHDOG_RESET_TESTS_H
24 #define MBED_HAL_WATCHDOG_RESET_TESTS_H
25 
26 #if DEVICE_WATCHDOG
27 
28 /** Test watchdog reset
29  *
30  * Given a device with a watchdog started,
31  * when a watchdog timeout expires,
32  * then the device is restarted.
33  */
34 void test_simple_reset();
35 
36 /** Test watchdog reset in sleep mode
37  *
38  * Given a device with a watchdog started,
39  * when the watchdog timeout expires while the device is in sleep mode,
40  * then the device is restarted.
41  */
42 void test_sleep_reset();
43 
44 /** Test watchdog reset in deepsleep mode
45  *
46  * Given a device with a watchdog started,
47  * when the watchdog timeout expires while the device is in deepsleep mode,
48  * then the device is restarted.
49  */
51 
52 /** Test watchdog reset after watchdog restart
53  *
54  * Given a device with a watchdog started,
55  * when the watchdog is stopped before its timeout expires,
56  * then the device is not restarted.
57  * When the watchdog is started again and its timeout expires,
58  * then the device is restarted.
59  */
60 void test_restart_reset();
61 
62 /** Test watchdog kick
63  *
64  * Given a device with a watchdog started,
65  * when the watchdog is kicked before its timeout expires,
66  * then the device restart is prevented.
67  * When the watchdog is *NOT* kicked again before next timeout expires,
68  * then the device is restarted.
69  */
70 void test_kick_reset();
71 
72 #endif
73 
74 #endif
75 
76 /** @}*/
77 
void test_deepsleep_reset()
Test watchdog reset in deepsleep mode.
void test_kick_reset()
Test watchdog kick.
void test_simple_reset()
Test watchdog reset.
void test_sleep_reset()
Test watchdog reset in sleep mode.
void test_restart_reset()
Test watchdog reset after watchdog restart.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.