summaryrefslogtreecommitdiff
path: root/ports/risc-v32/gnu/example_build/cva6_ariane/hwtimer.h
blob: 9e4a066da57b035ff2253856efe1fd5eff504633 (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

/***************************************************************************
 * Copyright (c) 2026 Quintauris
 *
 * This program and the accompanying materials are made available under the
 * terms of the MIT License which is available at
 * https://opensource.org/licenses/MIT.
 *
 * SPDX-License-Identifier: MIT
 **************************************************************************/

#ifndef RISCV_HWTIMER_H
#define RISCV_HWTIMER_H

#include <stdint.h>

#define TICKNUM_PER_SECOND 	50000000
#define TICKNUM_PER_TIMER	(TICKNUM_PER_SECOND / 100)

int hwtimer_init(void);

int hwtimer_handler(void);

#endif