Provide a small non-zero delay using a simple loop counter.
This function provides means for generating a constant length delay. It is written in assembly to keep the delay consistent across tool chains, avoiding the need to tune the delay based on the tool chain in use.
- Note
- It is not recommended using this function for long delays.
-
If using an RTOS, consider using RTOS provided delay functions because these will not block task scheduling and will potentially save power.
-
Interrupts can affect the delay if not manually disabled in advance.
-
The delay depends on where code resides and the path for code fetching.
- Parameters
-
| count | is the number of delay loop iterations to perform. Number must be greater than zero. |
- Returns
- None