CC3200 Peripheral Driver Library User's Guide
1.2.0
|
Functions | |
void | UtilsDelay (unsigned long ulCount) |
void | __attribute__ ((naked)) |
__asm (" .sect \".text:UtilsDelay\"\n"" .clink\n"" .thumbfunc UtilsDelay\n"" .thumb\n"" .global UtilsDelay\n""UtilsDelay:\n"" subs r0, #1\n"" bne.n UtilsDelay\n"" bx lr\n") | |
void UtilsDelay | ( | unsigned long | ulCount | ) |
Provides a small delay.
ulCount | is the number of delay loop iterations to perform. |
This function provides a means of 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.
The loop takes 3 cycles/loop.