@@ -100,7 +100,7 @@ class Ticker : public TimerEvent {
100
100
* @param func pointer to the function to be called
101
101
* @param t the time between calls in micro-seconds
102
102
*/
103
- void attach_us (Callback<void ()> func, timestamp_t t) {
103
+ void attach_us (Callback<void ()> func, us_timestamp_t t) {
104
104
_function = func;
105
105
setup (t);
106
106
}
@@ -118,7 +118,7 @@ class Ticker : public TimerEvent {
118
118
MBED_DEPRECATED_SINCE (" mbed-os-5.1" ,
119
119
" The attach_us function does not support cv-qualifiers. Replaced by "
120
120
" attach_us(callback(obj, method), t)." )
121
- void attach_us (T *obj, M method, timestamp_t t) {
121
+ void attach_us (T *obj, M method, us_timestamp_t t) {
122
122
attach_us (Callback<void ()>(obj, method), t);
123
123
}
124
124
@@ -131,12 +131,12 @@ class Ticker : public TimerEvent {
131
131
void detach ();
132
132
133
133
protected:
134
- void setup (timestamp_t t);
134
+ void setup (us_timestamp_t t);
135
135
virtual void handler ();
136
136
137
137
protected:
138
- timestamp_t _delay; /* Time delay (in microseconds) for re-setting the multi-shot callback. */
139
- Callback<void ()> _function; /* Callback. */
138
+ us_timestamp_t _delay; /* *< Time delay (in microseconds) for re-setting the multi-shot callback. */
139
+ Callback<void ()> _function; /* *< Callback. */
140
140
};
141
141
142
142
} // namespace mbed
0 commit comments