| Functions | |
| void | wait (float s) | 
| Generic wait functions.  More... | |
| void | wait_ms (int ms) | 
| Waits a number of milliseconds.  More... | |
| void | wait_us (int us) | 
| Waits a number of microseconds.  More... | |
| void | wait_ns (unsigned int ns) | 
| Waits a number of nanoseconds.  More... | |
| void wait | ( | float | s | ) | 
Generic wait functions.
These provide simple NOP type wait capabilities.
Example:
Waits for a number of seconds, with microsecond resolution (within the accuracy of single precision floating point).
| s | number of seconds to wait | 
wait_ms. We recommend wait_us and wait_ms over wait.| void wait_ms | ( | int | ms | ) | 
Waits a number of milliseconds.
| ms | the whole number of milliseconds to wait | 
| void wait_ns | ( | unsigned int | ns | ) | 
Waits a number of nanoseconds.
This function spins the CPU to produce a small delay. It should normally only be used for delays of 10us (10000ns) or less. As it is calculated based on the expected execution time of a software loop, it may well run slower than requested based on activity from other threads and interrupts. If greater precision is required, this can be called from inside a critical section.
| ns | the number of nanoseconds to wait | 
| void wait_us | ( | int | us | ) | 
Waits a number of microseconds.
| us | the whole number of microseconds to wait |