summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/rtems_udelay.h
blob: 32a3b62425dd8b30588a3ebacf315367302a169b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef RTEMS_UDELAY_Y
#define RTEMS_UDELAY_Y

#ifdef __cplusplus
extern "C" {
#endif

/* Delay execution for n microseconds. The current task
 * is suspended for multiples of OS 'ticks' and busy-waits
 * for fractions thereof.
 * The routine panics if requested to delay for more than
 * 10us in an ISR or IRQ-disabled section of code.
 */
void rtems_usec_delay(uint32_t usecs);

#define DELAY(usecs) rtems_usec_delay(usecs)

#ifdef __cplusplus
}
#endif

#endif