Ignore:
Timestamp:
Mar 17, 2014, 6:25:47 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
130f01b
Parents:
0e363f4
git-author:
Joel Sherrill <joel.sherrill@…> (03/17/14 18:25:47)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/21/14 13:55:06)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h

    r0e363f4 r0758923  
    4646#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
    4747
    48 /*
    49  *  Simple spin delay in microsecond units for device drivers.
    50  *  This is very dependent on the clock speed of the target.
    51  */
    52 
    53 #define rtems_bsp_delay( microseconds ) \
    54   { register uint32_t         _delay=(microseconds); \
    55     register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
    56     __asm__ volatile( "0: \
    57                      remo      3,31,%0 ; \
    58                      cmpo      0,%0 ; \
    59                      subo      1,%1,%1 ; \
    60                      cmpobne.t 0,%1,0b " \
    61                   : "=d" (_tmp), "=d" (_delay) \
    62                   : "0"  (_tmp), "1"  (_delay) ); \
    63   }
    64 
    6548#ifdef __cplusplus
    6649}
Note: See TracChangeset for help on using the changeset viewer.