summaryrefslogtreecommitdiff
path: root/test/tx/cmake/riscv/bsp/hwtimer.h
blob: e6b9efa4e3b59c9cb61e8ca2f23694dd1dff9638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/***************************************************************************
 * Copyright (c) 2026 10xEngineers
 *
 * 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  10000000
#define TICKNUM_PER_TIMER   (TICKNUM_PER_SECOND / 10)

int hwtimer_init(void);
int hwtimer_handler(void);

#endif /* RISCV_HWTIMER_H */