Changeset 130f01b in rtems


Ignore:
Timestamp:
Mar 17, 2014, 6:25:47 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
3139c1d0
Parents:
0758923
git-author:
Joel Sherrill <joel.sherrill@…> (03/17/14 18:25:47)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/21/14 13:55:07)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m32r/m32rsim/include/bsp.h

    r0758923 r130f01b  
    6363  __trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT)
    6464
    65 /*
    66  *  Simple spin delay in microsecond units for device drivers.
    67  *  This is very dependent on the clock speed of the target.
    68  */
    69 
    70 #define rtems_bsp_delay( microseconds ) \
    71   { register uint32_t         _delay=(microseconds); \
    72     register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
    73     __asm__ volatile( "0: \
    74                      remo      3,31,%0 ; \
    75                      cmpo      0,%0 ; \
    76                      subo      1,%1,%1 ; \
    77                      cmpobne.t 0,%1,0b " \
    78                   : "=d" (_tmp), "=d" (_delay) \
    79                   : "0"  (_tmp), "1"  (_delay) ); \
    80   }
    81 
    8265#ifdef __cplusplus
    8366}
Note: See TracChangeset for help on using the changeset viewer.