[feat] Add a sleep or wait function #8
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hubert/Pi-kachULM_OS#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It is useful to be able to wait for some time or cycles in the kernel (e.g. because the hardware need time to do an operation).
Not to be confused with the sleep system call required for POSIX compatibility. The sleep system call let the scheduler do something else. The kernel sleep just wait some time so the hardware can catch up (in the kernel there is no scheduler for now).
Tutorial: https://github.com/bztsrc/raspi3-tutorial/tree/master/07_delays
The tutorial is not up-to date, QEMU now support BCM System Timer peripheral.