blob: 48db1d3e84d68862cf8c2ff3c3f9753a10949981 [file] [log] [blame]
David Wangbcb8b142022-02-17 17:31:40 +08001/*
2 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7#ifndef __PROF_HAL_H__
8#define __PROF_HAL_H__
9
10#include <stdint.h>
11
12/* Platform must implement these functions */
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18/* Initialize the timer/cycle counter hardware for profiling */
19bool prof_hal_init(void);
20
21/* Interface for retrieving the timer/cycle count */
22uint32_t prof_hal_get_count(void);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif /* __PROF_HAL_H__ */