mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
riscv : add riscv qemu virt support and fix fs bit error in mstatus
This commit is contained in:
24
ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
Normal file
24
ports/risc-v64/gnu/example_build/qemu_virt/hwtimer.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user