| * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
| * SPDX-License-Identifier: BSD-3-Clause |
| /******************************************************************** |
| * A simple timer driver providing synchronous delay functionality. |
| * The driver must be initialized with a structure that provides a |
| * function pointer to return the timer value and a clock |
| * multiplier/divider. The ratio of the multiplier and the divider is |
| * the clock period in microseconds. |
| ********************************************************************/ |
| typedef struct timer_ops { |
| uint32_t (*get_timer_value)(void); |
| void mdelay(uint32_t msec); |
| void udelay(uint32_t usec); |
| void timer_init(const timer_ops_t *ops_ptr); |
| #endif /* DELAY_TIMER_H */ |