1
-
2
- /** \addtogroup hal */
3
- /** @{*/
4
1
/* mbed Microcontroller Library
5
2
* Copyright (c) 2006-2013 ARM Limited
6
3
*
16
13
* See the License for the specific language governing permissions and
17
14
* limitations under the License.
18
15
*/
16
+
17
+ /** \addtogroup hal */
18
+ /** @{*/
19
+
19
20
#ifndef MBED_RTC_API_H
20
21
#define MBED_RTC_API_H
21
22
@@ -33,16 +34,20 @@ extern "C" {
33
34
* The RTC hal provides a low level interface to the Real Time Counter (RTC) of a
34
35
* target.
35
36
*
36
- * # Defined behavior
37
- * * The function ::rtc_init is safe to call repeatedly - Verified by test ::rtc_init_test
38
- * * RTC accuracy is at least 10% - Not verified
39
- * * Init/free doesn't stop RTC from counting - Verified by test ::rtc_persist_test
40
- * * Software reset doesn't stop RTC from counting - Verified by ::rtc_reset_test
41
- * * Sleep modes don't stop RTC from counting - Verified by ::rtc_sleep_test
42
- * * Shutdown mode doesn't stop RTC from counting - Not verified
43
- *
44
- * # Undefined behavior
45
- * * Calling any function other than ::rtc_init before the initialization of the RTC
37
+ * # Defined behaviour
38
+ * * The function ::rtc_init is safe to call repeatedly - Verified by test ::rtc_init_test.
39
+ * * RTC accuracy is at least 10% - Verified by test ::rtc_accuracy_test.
40
+ * * Init/free doesn't stop RTC from counting - Verified by test ::rtc_persist_test.
41
+ * * Software reset doesn't stop RTC from counting - Verified by test ::rtc_reset_test.
42
+ * * Sleep modes don't stop RTC from counting - Verified by test ::rtc_sleep_test.
43
+ * * Shutdown mode doesn't stop RTC from counting - Not verified.
44
+ * * The functions ::rtc_write/::rtc_read provides availability to set/get RTC time
45
+ * - Verified by test ::rtc_write_read_test.
46
+ * * The functions ::rtc_isenabled returns 1 if the RTC is counting and the time has been set,
47
+ * 0 otherwise - Verified by test ::rtc_enabled_test.
48
+ *
49
+ * # Undefined behaviour
50
+ * * Calling any function other than ::rtc_init before the initialisation of the RTC
46
51
*
47
52
* # Potential bugs
48
53
* * Incorrect overflow handling - Verified by ::rtc_range_test
@@ -71,7 +76,7 @@ extern "C" {
71
76
*
72
77
* @note This function is safe to call repeatedly - Tested by ::rtc_init_test
73
78
*
74
- * Pseudo Code:
79
+ * Example Implementation Pseudo Code:
75
80
* @code
76
81
* void rtc_init()
77
82
* {
@@ -97,7 +102,7 @@ void rtc_init(void);
97
102
*
98
103
* @note This function does not stop the RTC from counting - Tested by ::rtc_persist_test
99
104
*
100
- * Pseudo Code:
105
+ * Example Implementation Pseudo Code:
101
106
* @code
102
107
* void rtc_free()
103
108
* {
@@ -113,7 +118,7 @@ void rtc_free(void);
113
118
* @retval 0 The time reported by the RTC is not valid
114
119
* @retval 1 The time has been set the RTC is counting
115
120
*
116
- * Pseudo Code:
121
+ * Example Implementation Pseudo Code:
117
122
* @code
118
123
* int rtc_isenabled()
119
124
* {
@@ -160,7 +165,7 @@ time_t rtc_read(void);
160
165
*
161
166
* @param t The current time to be set in seconds.
162
167
*
163
- * Pseudo Code:
168
+ * Example Implementation Pseudo Code:
164
169
* @code
165
170
* void rtc_write(time_t t)
166
171
* {
0 commit comments