summaryrefslogtreecommitdiff
path: root/ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2025-02-24 15:43:49 -0500
committerGitHub <[email protected]>2025-02-24 15:43:49 -0500
commit06dabb0ad0403f59889ce85eeb3d48dbd9d3759b (patch)
tree55c635ef6650198af9edf00e063c916124cfa816 /ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
parent98c9172d01dcfdd0026ee3f5c6259dea6a12f253 (diff)
parentf0a44ad3914da1ce8429e55ff74f59eca11b6ec7 (diff)
Merge pull request #442 from eclipse-threadx/devv6.4.2_rel
Release ThreadX 6.4.2
Diffstat (limited to 'ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h')
-rw-r--r--ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h b/ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
new file mode 100644
index 00000000..f65c75e1
--- /dev/null
+++ b/ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
@@ -0,0 +1,24 @@
+
+/***************************************************************************
+ * Copyright (c) 2024 Microsoft Corporation
+ *
+ * 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