• Ryan Harkin's avatar
    Add a simple delay timer driver API · 9055c7d1
    Ryan Harkin authored
    
    
    The API is simple. The BSP or specific timer driver creates an
    instance of timer_ops_t, fills in the timer specific data, then calls
    timer_init(). The timer specific data includes a function pointer
    to return the timer value and a clock multiplier/divider. The ratio
    of the multiplier and the divider is the clock frequency in MHz.
    
    After that, mdelay() or udelay() can be called to delay execution for
    the specified time (milliseconds or microseconds, respectively).
    
    Change-Id: Icf8a295e1d25874f789bf28b7412156329dc975c
    Co-authored-by: default avatarDan Handley <dan.handley@arm.com>
    9055c7d1
delay_timer.h 2.26 KB