@@ -117,7 +117,7 @@ Initializes the scheduler by resetting all timers.
117
117
### Starting a Timer
118
118
119
119
```c
120
- flexitimer_error_t flexitimer_start(int id, TimerType type, uint32_t timeout, TimerCallback callback);
120
+ flexitimer_error_t flexitimer_start(timer_id_t id, TimerType type, uint32_t timeout, TimerCallback callback);
121
121
```
122
122
Starts a timer with the specified id, type, timeout, and callback.
123
123
@@ -131,63 +131,63 @@ The scheduler handler that should be called periodically to manage timers.
131
131
### Postponing/Delaying a Timer
132
132
133
133
```c
134
- flexitimer_error_t flexitimer_delay(int id, timer_time_t delay);
134
+ flexitimer_error_t flexitimer_delay(timer_id_t id, timer_time_t delay);
135
135
```
136
136
Postpones / delays the timer with the specified id.
137
137
138
138
### Pausing a Timer
139
139
140
140
```c
141
- flexitimer_error_t flexitimer_pause(int id);
141
+ flexitimer_error_t flexitimer_pause(timer_id_t id);
142
142
```
143
143
Pauses the timer with the specified id.
144
144
145
145
### Resuming a Timer
146
146
147
147
```c
148
- flexitimer_error_t flexitimer_resume(int id);
148
+ flexitimer_error_t flexitimer_resume(timer_id_t id);
149
149
```
150
150
Resumes the paused timer with the specified id.
151
151
152
152
### Restarting a Timer
153
153
154
154
```c
155
- flexitimer_error_t flexitimer_restart(int id);
155
+ flexitimer_error_t flexitimer_restart(timer_id_t id);
156
156
```
157
157
Restarts the timer with the specified id.
158
158
159
159
### Cancelling a Timer
160
160
161
161
```c
162
- flexitimer_error_t flexitimer_cancel(int id);
162
+ flexitimer_error_t flexitimer_cancel(timer_id_t id);
163
163
```
164
164
Cancels the timer with the specified id.
165
165
166
166
### Getting Timer State
167
167
168
168
```c
169
- flexitimer_error_t flexitimer_get_state(int id, timer_state_t *state);
169
+ flexitimer_error_t flexitimer_get_state(timer_id_t id, timer_state_t *state);
170
170
```
171
171
Gets the state of the timer with the specified id.
172
172
173
173
### Getting Timer Type
174
174
175
175
```c
176
- flexitimer_error_t flexitimer_get_type(int id, timer_type_t *type);
176
+ flexitimer_error_t flexitimer_get_type(timer_id_t id, timer_type_t *type);
177
177
```
178
178
Gets the type of the timer with the specified id.
179
179
180
180
### Getting Original Timeout
181
181
182
182
```c
183
- flexitimer_error_t flexitimer_get_time(int id, timer_time_t *time);
183
+ flexitimer_error_t flexitimer_get_time(timer_id_t id, timer_time_t *time);
184
184
```
185
185
Gets the original timeout value of the timer with the specified id.
186
186
187
187
### Getting Remaining Time
188
188
189
189
```c
190
- flexitimer_error_t flexitimer_get_elapsed(int id, timer_time_t *time);
190
+ flexitimer_error_t flexitimer_get_elapsed(timer_id_t id, timer_time_t *time);
191
191
```
192
192
Gets the remaining time of the timer with the specified id.
193
193
0 commit comments