summaryrefslogtreecommitdiff
path: root/drivers/io
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2015-03-17 14:50:05 +0000
committerDan Handley <dan.handley@arm.com>2015-06-17 13:13:54 +0100
commit9055c7d149758f2f2a646f40f08d6d24b07dfff3 (patch)
tree3f20eb14472fa36612e32e5cdd71e73230255afc /drivers/io
parent789c22013574846413ffb86618297ee7de168af0 (diff)
Add a simple delay timer driver API
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: Dan Handley <dan.handley@arm.com>
Diffstat (limited to 'drivers/io')
0 files changed, 0 insertions, 0 deletions