Changeset e6e5e47 in rtems


Ignore:
Timestamp:
Apr 14, 1998, 7:56:25 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c8bc6e45
Parents:
b0562e74
Message:

Removed delay macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/papyrus/include/bsp.h

    rb0562e74 re6e5e47  
    7575#define Lower_tm27_intr()
    7676
    77 /*
    78  *  Simple spin delay in microsecond units for device drivers.
    79  *  This is very dependent on the clock speed of the target.
    80  */
    81 
    82 #define delay( microseconds ) \
    83   { \
    84     unsigned32 start, ticks, now; \
    85     asm volatile ("mfspr %0, 0x3dd" : "=r" (start)); /* TBLO */ \
    86     ticks = (microseconds) * Cpu_table.clicks_per_usec; \
    87     do \
    88       asm volatile ("mfspr %0, 0x3dd" : "=r" (now)); /* TBLO */ \
    89     while (now - start < ticks); \
    90   }
    91 
    92 
    9377/* Constants */
    9478
Note: See TracChangeset for help on using the changeset viewer.