Mistake on this page?
Report an issue in GitHub or email us
lp_ticker_api_tests.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2017-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_lp_ticker_tests
19  * @{
20  */
21 
22 #ifndef LP_TICKER_API_TESTS_H
23 #define LP_TICKER_API_TESTS_H
24 
25 #include "device.h"
26 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /** Test that the ticker has the correct frequency and number of bits.
33  *
34  * Given ticker is available.
35  * When ticker information data is obtained.
36  * Then collected data indicates that ticker frequency is between 4KHz and 64KHz and the counter is at least 12 bits wide.
37  */
38 void lp_ticker_info_test(void);
39 
40 /** Test that the ticker continues operating in deep sleep mode.
41  *
42  * Given ticker is available.
43  * When ticker has interrupt set and board enters deep-sleep mode.
44  * Then ticker continues operating.
45  */
46 void lp_ticker_deepsleep_test(void);
47 
48 /** Test that the ticker does not glitch backwards due to an incorrectly implemented ripple counter driver.
49  *
50  * Given ticker is available.
51  * When ticker is enabled and counts.
52  * Then ticker does not glitch backwards due to an incorrectly implemented ripple counter driver.
53  */
54 void lp_ticker_glitch_test(void);
55 /**@}*/
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
62 
63 /**@}*/
void lp_ticker_glitch_test(void)
Test that the ticker does not glitch backwards due to an incorrectly implemented ripple counter drive...
void lp_ticker_deepsleep_test(void)
Test that the ticker continues operating in deep sleep mode.
void lp_ticker_info_test(void)
Test that the ticker has the correct frequency and number of bits.
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.