aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas/rcar/delay/micro_delay.h
blob: 4e4b28babc8e143803edb3bc1a9ef6bb5ede2fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef MICRO_DELAY_H
#define MICRO_DELAY_H

#define TMU3_MEASUREMENT	(0)

#ifndef __ASSEMBLY__
#include <stdint.h>
void rcar_micro_delay(uint32_t count_us);

#if (TMU3_MEASUREMENT == 1)
void tmu3_start(void);
void tmu3_init(void);
void tmu3_stop(void);

uint32_t tcnt3_snapshot(void);
#endif

#endif

#endif /* MICRO_DELAY_H */