mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
Removed delay macro
This commit is contained in:
@@ -74,22 +74,6 @@ extern "C" {
|
||||
|
||||
#define Lower_tm27_intr()
|
||||
|
||||
/*
|
||||
* Simple spin delay in microsecond units for device drivers.
|
||||
* This is very dependent on the clock speed of the target.
|
||||
*/
|
||||
|
||||
#define delay( microseconds ) \
|
||||
{ \
|
||||
unsigned32 start, ticks, now; \
|
||||
asm volatile ("mfspr %0, 0x3dd" : "=r" (start)); /* TBLO */ \
|
||||
ticks = (microseconds) * Cpu_table.clicks_per_usec; \
|
||||
do \
|
||||
asm volatile ("mfspr %0, 0x3dd" : "=r" (now)); /* TBLO */ \
|
||||
while (now - start < ticks); \
|
||||
}
|
||||
|
||||
|
||||
/* Constants */
|
||||
|
||||
#define RAM_START 0
|
||||
|
||||
Reference in New Issue
Block a user