summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/rtems_udelay.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
commit89376b7141edb6f927fb940c27391cda6e67c785 (patch)
tree57dd01fd9328b879289493ba848ae5c34c607b91 /bsd_eth_drivers/libbsdport/rtems_udelay.h
downloadlibbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2
Initial import.initial
Diffstat (limited to 'bsd_eth_drivers/libbsdport/rtems_udelay.h')
-rw-r--r--bsd_eth_drivers/libbsdport/rtems_udelay.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/rtems_udelay.h b/bsd_eth_drivers/libbsdport/rtems_udelay.h
new file mode 100644
index 0000000..32a3b62
--- /dev/null
+++ b/bsd_eth_drivers/libbsdport/rtems_udelay.h
@@ -0,0 +1,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