@@ -35,7 +35,7 @@ namespace mbed {
35
35
*
36
36
* Example:
37
37
* @code
38
- * // Toggle the blinking led after 5 seconds
38
+ * // Toggle the blinking LED after 5 seconds
39
39
*
40
40
* #include "mbed.h"
41
41
*
@@ -70,7 +70,7 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
70
70
{
71
71
}
72
72
73
- // When low power ticker is in use, then do not disable deep- sleep.
73
+ // When low power ticker is in use, then do not disable deep sleep.
74
74
Ticker (const ticker_data_t *data) : TimerEvent(data), _function(0 ), _lock_deepsleep(true )
75
75
{
76
76
#if DEVICE_LPTICKER
@@ -106,13 +106,13 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
106
106
attach (callback (obj, method), t);
107
107
}
108
108
109
- /* * Attach a function to be called by the Ticker, specifying the interval in micro-seconds
109
+ /* * Attach a function to be called by the Ticker, specifying the interval in microseconds
110
110
*
111
111
* @param func pointer to the function to be called
112
112
* @param t the time between calls in micro-seconds
113
113
*
114
- * @note setting @a t to a value shorter that it takes to process the ticker callback
115
- * will cause the system to hang. Ticker callback will be called constantly with no time
114
+ * @note setting @a t to a value shorter than it takes to process the ticker callback
115
+ * causes the system to hang. Ticker callback is called constantly with no time
116
116
* for threads scheduling.
117
117
*
118
118
*/
@@ -128,11 +128,11 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
128
128
core_util_critical_section_exit ();
129
129
}
130
130
131
- /* * Attach a member function to be called by the Ticker, specifying the interval in micro-seconds
131
+ /* * Attach a member function to be called by the Ticker, specifying the interval in microseconds
132
132
*
133
133
* @param obj pointer to the object to call the member function on
134
134
* @param method pointer to the member function to be called
135
- * @param t the time between calls in micro-seconds
135
+ * @param t the time between calls in microseconds
136
136
* @deprecated
137
137
* The attach_us function does not support cv-qualifiers. Replaced by
138
138
* attach_us(callback(obj, method), t).
@@ -155,14 +155,16 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
155
155
*/
156
156
void detach ();
157
157
158
+ #if !defined(DOXYGEN_ONLY)
158
159
protected:
159
160
void setup (us_timestamp_t t);
160
161
virtual void handler ();
161
162
162
163
protected:
163
- us_timestamp_t _delay; /* *< Time delay (in microseconds) for re-setting the multi-shot callback. */
164
+ us_timestamp_t _delay; /* *< Time delay (in microseconds) for resetting the multishot callback. */
164
165
Callback<void ()> _function; /* *< Callback. */
165
- bool _lock_deepsleep; /* *< Flag which indicates if deep-sleep should be disabled. */
166
+ bool _lock_deepsleep; /* *< Flag which indicates if deep sleep should be disabled. */
167
+ #endif
166
168
};
167
169
168
170
} // namespace mbed
0 commit comments