blob: 4e4b28babc8e143803edb3bc1a9ef6bb5ede2fa7 [file] [log] [blame]
Jorge Ramirez-Ortizf7c14d52018-09-23 09:39:37 +02001/*
2 * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef MICRO_DELAY_H
8#define MICRO_DELAY_H
Jorge Ramirez-Ortizf7c14d52018-09-23 09:39:37 +02009
10#define TMU3_MEASUREMENT (0)
11
12#ifndef __ASSEMBLY__
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000013#include <stdint.h>
Jorge Ramirez-Ortizf7c14d52018-09-23 09:39:37 +020014void rcar_micro_delay(uint32_t count_us);
15
16#if (TMU3_MEASUREMENT == 1)
17void tmu3_start(void);
18void tmu3_init(void);
19void tmu3_stop(void);
20
21uint32_t tcnt3_snapshot(void);
22#endif
23
24#endif
25
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000026#endif /* MICRO_DELAY_H */