You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Zephyr RTOS shall provide a mechanism to define and initialize timers at run time.
20
+
The Zephyr RTOS shall provide a mechanism to define and statically (i.e. compile time) initialize timers.
21
21
<<<
22
22
RELATIONS:
23
23
- TYPE: Parent
@@ -28,9 +28,9 @@ UID: ZEP-SRS-4-2
28
28
STATUS: Draft
29
29
TYPE: Functional
30
30
COMPONENT: Timers
31
-
TITLE: Timer definition at compile time
31
+
TITLE: Timer expiry function
32
32
STATEMENT: >>>
33
-
The Zephyr RTOS shall provide a mechanism to define and static initialize timers (compile time).
33
+
When initializing a timer, the Zephyr RTOS shall support setting a function that gets called when the timer expires.
34
34
<<<
35
35
RELATIONS:
36
36
- TYPE: Parent
@@ -39,11 +39,11 @@ RELATIONS:
39
39
[REQUIREMENT]
40
40
UID: ZEP-SRS-4-3
41
41
STATUS: Draft
42
-
TYPE: Non-Functional
42
+
TYPE: Functional
43
43
COMPONENT: Timers
44
-
TITLE: Timer status
44
+
TITLE: Timer stop function
45
45
STATEMENT: >>>
46
-
A Zephyr RTOS timershall have a status which indicates the expiration of the timer.
46
+
When initializing a timer, the Zephyr RTOS shall support setting a function that gets called when a running timer is stopped.
47
47
<<<
48
48
RELATIONS:
49
49
- TYPE: Parent
@@ -54,9 +54,9 @@ UID: ZEP-SRS-4-4
54
54
STATUS: Draft
55
55
TYPE: Functional
56
56
COMPONENT: Timers
57
-
TITLE: Timer period
57
+
TITLE: Timer definition at run time
58
58
STATEMENT: >>>
59
-
A Zephyr RTOS timer shall support repeated expiration of the timer given by a timer-specific time period.
59
+
The Zephyr RTOS shall provide a mechanism to define and initialize timers at run time.
60
60
<<<
61
61
RELATIONS:
62
62
- TYPE: Parent
@@ -67,9 +67,9 @@ UID: ZEP-SRS-4-5
67
67
STATUS: Draft
68
68
TYPE: Functional
69
69
COMPONENT: Timers
70
-
TITLE: Timer duration
70
+
TITLE: Timer start
71
71
STATEMENT: >>>
72
-
A Zephyr RTOS timer shall have a duration which indicates when the timer expires for the first time.
72
+
The Zephyr RTOS shall provide a mechanism to start a timer for a specific duration and periodicity.
73
73
<<<
74
74
RELATIONS:
75
75
- TYPE: Parent
@@ -80,9 +80,9 @@ UID: ZEP-SRS-4-6
80
80
STATUS: Draft
81
81
TYPE: Functional
82
82
COMPONENT: Timers
83
-
TITLE: Timer expiry function
83
+
TITLE: Timer stop
84
84
STATEMENT: >>>
85
-
A Zephyr RTOS timer shall support a user-settable expiry function that gets called whenever the timer expires.
85
+
The Zephyr RTOS shall provide a mechanism to stop a running timer.
86
86
<<<
87
87
RELATIONS:
88
88
- TYPE: Parent
@@ -91,11 +91,11 @@ RELATIONS:
91
91
[REQUIREMENT]
92
92
UID: ZEP-SRS-4-7
93
93
STATUS: Draft
94
-
TYPE: Functional
94
+
TYPE: Non-Functional
95
95
COMPONENT: Timers
96
-
TITLE: Timer stop function
96
+
TITLE: Timer status
97
97
STATEMENT: >>>
98
-
A Zephyr RTOS timer shall support a user-settable stop function that gets called when the timer is stopped while running.
98
+
The Zephyr RTOS shall provide a mechanism to read the number of times a timer has expired and then reset this number to 0.
99
99
<<<
100
100
RELATIONS:
101
101
- TYPE: Parent
@@ -104,11 +104,11 @@ RELATIONS:
104
104
[REQUIREMENT]
105
105
UID: ZEP-SRS-4-8
106
106
STATUS: Draft
107
-
TYPE: Functional
107
+
TYPE: Non-Functional
108
108
COMPONENT: Timers
109
-
TITLE: Initialialization with expiry function
109
+
TITLE: Timer status reinitialization
110
110
STATEMENT: >>>
111
-
When initializing a Zephyr RTOS timer, the expiry function a timer can have shall be settable.
111
+
When a timer is initialized, started or synchronized to a thread, the Zephyr RTOS shall reset the timer number of times it has expired to 0.
112
112
<<<
113
113
RELATIONS:
114
114
- TYPE: Parent
@@ -119,9 +119,11 @@ UID: ZEP-SRS-4-9
119
119
STATUS: Draft
120
120
TYPE: Functional
121
121
COMPONENT: Timers
122
-
TITLE: Initialialization with stop function
122
+
TITLE: Timer thread synchronization
123
123
STATEMENT: >>>
124
-
When initializing a Zephyr RTOS timer, the stop function a timer can have shall be settable.
124
+
The Zephyr RTOS shall provide a mechanism to synchronize a thread to a timer and then block the thread execution until any of the following conditions is satisfied:
125
+
- The timer is stopped
126
+
- The timer number of times it has expired is superior to 0
125
127
<<<
126
128
RELATIONS:
127
129
- TYPE: Parent
@@ -132,9 +134,9 @@ UID: ZEP-SRS-4-10
132
134
STATUS: Draft
133
135
TYPE: Functional
134
136
COMPONENT: Timers
135
-
TITLE: Timer start
137
+
TITLE: Timer next expiration time in system ticks
136
138
STATEMENT: >>>
137
-
The Zephyr RTOS shall provide a mechanism to start a defined and initialized timer.
139
+
The Zephyr RTOS shall provide a mechanism to get a timer's next expiration time in system ticks.
138
140
<<<
139
141
RELATIONS:
140
142
- TYPE: Parent
@@ -145,9 +147,9 @@ UID: ZEP-SRS-4-11
145
147
STATUS: Draft
146
148
TYPE: Functional
147
149
COMPONENT: Timers
148
-
TITLE: Start timer status reset
150
+
TITLE: Timer remaining time until expiration in system ticks
149
151
STATEMENT: >>>
150
-
Whenever a not running timer is started the timer's status shall be reset to zero.
152
+
The Zephyr RTOS shall provide a mechanism to get a timer's remaining time until its next expiry in system ticks.
151
153
<<<
152
154
RELATIONS:
153
155
- TYPE: Parent
@@ -158,124 +160,7 @@ UID: ZEP-SRS-4-12
158
160
STATUS: Draft
159
161
TYPE: Functional
160
162
COMPONENT: Timers
161
-
TITLE: Start timer counting values
162
-
STATEMENT: >>>
163
-
Whenever a Zephyr RTOS timer is started, the timer shall start running with the duration and period values provided during timer initialization.
164
-
<<<
165
-
RELATIONS:
166
-
- TYPE: Parent
167
-
VALUE: ZEP-SYRS-18
168
-
169
-
[REQUIREMENT]
170
-
UID: ZEP-SRS-4-13
171
-
STATUS: Draft
172
-
TYPE: Functional
173
-
COMPONENT: Timers
174
-
TITLE: Timer stop
175
-
STATEMENT: >>>
176
-
A Zephyr RTOS timer that is running shall be stoppable
177
-
<<<
178
-
RELATIONS:
179
-
- TYPE: Parent
180
-
VALUE: ZEP-SYRS-18
181
-
182
-
[REQUIREMENT]
183
-
UID: ZEP-SRS-4-14
184
-
STATUS: Draft
185
-
TYPE: Functional
186
-
COMPONENT: Timers
187
-
TITLE: Timer status read
188
-
STATEMENT: >>>
189
-
The Zephyr RTOS shall provide a mechanism to read the number of times a timer that is running has already expired.
190
-
<<<
191
-
RELATIONS:
192
-
- TYPE: Parent
193
-
VALUE: ZEP-SYRS-18
194
-
195
-
[REQUIREMENT]
196
-
UID: ZEP-SRS-4-15
197
-
STATUS: Draft
198
-
TYPE: Functional
199
-
COMPONENT: Timers
200
-
TITLE: Timer status read reset
201
-
STATEMENT: >>>
202
-
When the timer is read via the timer status read mechanism, the status shall be reset.
203
-
<<<
204
-
RELATIONS:
205
-
- TYPE: Parent
206
-
VALUE: ZEP-SYRS-18
207
-
208
-
[REQUIREMENT]
209
-
UID: ZEP-SRS-4-16
210
-
STATUS: Draft
211
-
TYPE: Functional
212
-
COMPONENT: Timers
213
-
TITLE: Timer thread synchronization
214
-
STATEMENT: >>>
215
-
The Zephyr RTOS shall provide a mechanism to synchronize a thread with a defined and initialized timer.
216
-
<<<
217
-
RELATIONS:
218
-
- TYPE: Parent
219
-
VALUE: ZEP-SYRS-18
220
-
221
-
[REQUIREMENT]
222
-
UID: ZEP-SRS-4-17
223
-
STATUS: Draft
224
-
TYPE: Functional
225
-
COMPONENT: Timers
226
-
TITLE: Synchronized thread blocks until timer has expired
227
-
STATEMENT: >>>
228
-
When the thread synchronization mechanism is used, the thread shall be blocked until the timer expires.
229
-
<<<
230
-
RELATIONS:
231
-
- TYPE: Parent
232
-
VALUE: ZEP-SYRS-18
233
-
234
-
[REQUIREMENT]
235
-
UID: ZEP-SRS-4-18
236
-
STATUS: Draft
237
-
TYPE: Functional
238
-
COMPONENT: Timers
239
-
TITLE: Synchronized thread is unblocked when timer is stopped.
240
-
STATEMENT: >>>
241
-
When the thread synchronization mechanism is used, the synchronized thread shall be unblocked when the timer is stopped.
242
-
<<<
243
-
RELATIONS:
244
-
- TYPE: Parent
245
-
VALUE: ZEP-SYRS-18
246
-
247
-
[REQUIREMENT]
248
-
UID: ZEP-SRS-4-19
249
-
STATUS: Draft
250
-
TYPE: Functional
251
-
COMPONENT: Timers
252
-
TITLE: Timer thread synchronization status reset
253
-
STATEMENT: >>>
254
-
When the thread synchronization mechanism is used, the status of the timer shall be reset.
255
-
<<<
256
-
RELATIONS:
257
-
- TYPE: Parent
258
-
VALUE: ZEP-SYRS-18
259
-
260
-
[REQUIREMENT]
261
-
UID: ZEP-SRS-4-20
262
-
STATUS: Draft
263
-
TYPE: Functional
264
-
COMPONENT: Timers
265
-
TITLE: Provide timer remaining expiration time in units of system ticks
266
-
STATEMENT: >>>
267
-
The Zephyr RTOS shall provide a mechanism to get the timer's remaining time until its next expiry in system ticks.
268
-
<<<
269
-
RELATIONS:
270
-
- TYPE: Parent
271
-
VALUE: ZEP-SYRS-18
272
-
273
-
[REQUIREMENT]
274
-
UID: ZEP-SRS-4-21
275
-
STATUS: Draft
276
-
TYPE: Functional
277
-
COMPONENT: Timers
278
-
TITLE: Provide timer remaining expiration time in milliseconds
163
+
TITLE: Timer remaining time until expiration in milliseconds
279
164
STATEMENT: >>>
280
165
The Zephyr RTOS shall provide a mechanism to get the timer's remaining time until its next expiry in milliseconds.
281
166
<<<
@@ -284,33 +169,33 @@ RELATIONS:
284
169
VALUE: ZEP-SYRS-18
285
170
286
171
[REQUIREMENT]
287
-
UID: ZEP-SRS-4-22
172
+
UID: ZEP-SRS-4-13
288
173
STATUS: Draft
289
174
TYPE: Functional
290
175
COMPONENT: Timers
291
176
TITLE: Timer set user data
292
177
STATEMENT: >>>
293
-
The Zephyr RTOS shall provide a mechanism to set user data to a timer.
178
+
The Zephyr RTOS shall support adding user defined data to a timer.
294
179
<<<
295
180
RELATIONS:
296
181
- TYPE: Parent
297
182
VALUE: ZEP-SYRS-18
298
183
299
184
[REQUIREMENT]
300
-
UID: ZEP-SRS-4-23
185
+
UID: ZEP-SRS-4-14
301
186
STATUS: Draft
302
187
TYPE: Functional
303
188
COMPONENT: Timers
304
189
TITLE: Timer get user data
305
190
STATEMENT: >>>
306
-
The Zephyr RTOS shall provide a mechanism to get user data from a timer.
191
+
The Zephyr RTOS shall support retrieving user defined data from a timer.
307
192
<<<
308
193
RELATIONS:
309
194
- TYPE: Parent
310
195
VALUE: ZEP-SYRS-18
311
196
312
197
[REQUIREMENT]
313
-
UID: ZEP-SRS-4-24
198
+
UID: ZEP-SRS-4-15
314
199
STATUS: Draft
315
200
TYPE: Functional
316
201
COMPONENT: Timers
@@ -321,16 +206,3 @@ When the timer expiry function is defined, it shall be called in the interrupt c
321
206
RELATIONS:
322
207
- TYPE: Parent
323
208
VALUE: ZEP-SYRS-18
324
-
325
-
[REQUIREMENT]
326
-
UID: ZEP-SRS-4-25
327
-
STATUS: Draft
328
-
TYPE: Functional
329
-
COMPONENT: Timers
330
-
TITLE: Provide timer next expiration time in units of system ticks
331
-
STATEMENT: >>>
332
-
The Zephyr RTOS shall provide a mechanism to get the timer's next time of expiration in system ticks.
0 commit comments