Sleep¶
Blocks the calling task for at least ms milliseconds.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x02 SVC_SLEEP |
— | yes | 2.0 |
Err Sleep(Duration ms);
Registers: (ms) -> r0 status
Other tasks run in the meantime. The wake-up is accurate to the counter, not to a tick; it can be late by however long higher-priority tasks keep the CPU.
Parameters¶
| Name | Direction | Description |
|---|---|---|
ms |
in | Time to sleep, in milliseconds. |
Returns¶
Always ZUZU_OK.