pc386/include/bsp.h: Remove rtems_bsp_delay()

This commit is contained in:
Joel Sherrill
2014-03-17 13:25:47 -05:00
parent 43af31de33
commit 31f1ef9ddb

View File

@@ -161,22 +161,6 @@ extern int rtems_3c509_driver_attach(struct rtems_bsdnet_ifconfig *config);
#define BSP_CONSOLE_COM1 1
#define BSP_CONSOLE_COM2 2
/*-------------------------------------------------------------------------+
| Macros
+--------------------------------------------------------------------------*/
/* does anyone need this? if so, report it so we can rename this macro */
#if 0
/*-------------------------------------------------------------------------+
| Simple spin delay in microsecond units for device drivers.
| This is very dependent on the clock speed of the target.
+--------------------------------------------------------------------------*/
#define rtems_bsp_delay(_microseconds) \
{ \
uint32_t _cnt = _microseconds; \
__asm__ volatile ("0: nop; mov %0,%0; loop 0b" : "=c"(_cnt) : "0"(_cnt)); \
}
#endif
/*-------------------------------------------------------------------------+
| Convert microseconds to ticks and ticks to microseconds.
+--------------------------------------------------------------------------*/