Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
sleep.h
Go to the documentation of this file.
1
35#ifndef _OS_SLEEP_H_
36#define _OS_SLEEP_H_
37
38#include <inttypes.h>
39
40#ifndef EMSCRIPTEN
45static void microsleep(uint32_t microseconds) __attribute__((weakref("usleep")));
46#endif
47
51extern "C" void microdelay(uint32_t microseconds);
52
53#endif // _OS_SLEEP_H_
static void microsleep(uint32_t microseconds)
Sleep a given number of microseconds.
void microdelay(uint32_t microseconds)
Executes a busy loop for a given amount of time.