* 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. */
| 42 | * This does not allow other tasks to run on the stalled CPU core. |
| 43 | */ |
| 44 | static 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected