Mistake on this page?
Report an issue in GitHub or email us
sleep_api_tests.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2017 ARM Limited
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 /** \addtogroup hal_sleep_tests */
19 /** @{*/
20 
21 #ifndef MBED_SLEEP_API_TESTS_H
22 #define MBED_SLEEP_API_TESTS_H
23 
24 #include "device.h"
25 
26 #if DEVICE_SLEEP
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /** High frequency ticker interrupt can wake up from sleep (locked deep-sleep).
33  *
34  * Given is an environment with high frequency ticker.
35  * When the board enters sleep mode.
36  * Then the board can be wake up from the sleep by high frequency ticker interrupt and
37  * wake-up time should be less than 10 us.
38  */
39 void sleep_usticker_test();
40 
41 /** Low power ticker interrupt to wake up from deep-sleep (unlocked deep-sleep).
42  *
43  * Given is an environment with low power ticker.
44  * When the board enters deep-sleep mode.
45  * Then the board can be wake up from the sleep by low power ticker interrupt and
46  * wake-up time should be less than 10 ms.
47  *
48  */
50 
51 /** High speed clocks are turned off in deep-sleep (unlocked deep-sleep)
52  *
53  * Given is an environment with high frequency ticker.
54  * When the board enters deep-sleep mode.
55  * Then high frequency ticker does not count while the board is in the deep-sleep mode.
56  *
57  */
59 
60 /**@}*/
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
67 
68 #endif
69 
70 /**@}*/
void deepsleep_lpticker_test()
Low power ticker interrupt to wake up from deep-sleep (unlocked deep-sleep).
void sleep_usticker_test()
High frequency ticker interrupt can wake up from sleep (locked deep-sleep).
void deepsleep_high_speed_clocks_turned_off_test()
High speed clocks are turned off in deep-sleep (unlocked deep-sleep)
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.