MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / delay_micros

Function delay_micros

TactilityKernel/include/tactility/delay.h:44–50  ·  view source on GitHub ↗

* Stall the currently active CPU core for the specified amount of microseconds. * This does not allow other tasks to run on the stalled CPU core. */

Source from the content-addressed store, hash-verified

42 * This does not allow other tasks to run on the stalled CPU core.
43 */
44static inline void delay_micros(uint32_t microseconds) {
45#ifdef ESP_PLATFORM
46 ets_delay_us(microseconds);
47#else
48 usleep(microseconds);
49#endif
50}
51
52#ifdef __cplusplus
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected