Changeset 43af31d in rtems for c/src/lib/libbsp/h8300


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/include/bsp.h

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