Jorge Ramirez-Ortiz | f7c14d5 | 2018-09-23 09:39:37 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef MICRO_DELAY_H__ |
| 8 | #define MICRO_DELAY_H__ |
| 9 | |
| 10 | #define TMU3_MEASUREMENT (0) |
| 11 | |
| 12 | #ifndef __ASSEMBLY__ |
| 13 | #include "stdint.h" |
| 14 | void rcar_micro_delay(uint32_t count_us); |
| 15 | |
| 16 | #if (TMU3_MEASUREMENT == 1) |
| 17 | void tmu3_start(void); |
| 18 | void tmu3_init(void); |
| 19 | void tmu3_stop(void); |
| 20 | |
| 21 | uint32_t tcnt3_snapshot(void); |
| 22 | #endif |
| 23 | |
| 24 | #endif |
| 25 | |
| 26 | #endif |