diff options
| author | Bernard Xiong <[email protected]> | 2024-07-17 09:58:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-17 09:58:06 +0800 |
| commit | 019b8cd24b31109573da2255cb44b4cac60d2dd0 (patch) | |
| tree | d5e6c7a6c4d75b0fbb03f8ff4b3c02ccacddf5ec /components/drivers | |
| parent | 4ad194bb47101345ce3b3fa631ab2215a0c190c0 (diff) | |
| parent | f6f570df742e8f03fb696ea036987b4d48a542c4 (diff) | |
Merge pull request #9164 from polarvid/shell/rv64-tick
[libcpu/rv64] feat: unify tick.c
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/include/drivers/cputime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/cputime.h b/components/drivers/include/drivers/cputime.h index 3b1eb2aec0..478ccfd019 100644 --- a/components/drivers/include/drivers/cputime.h +++ b/components/drivers/include/drivers/cputime.h @@ -31,4 +31,8 @@ uint64_t clock_cpu_millisecond(uint64_t cpu_tick); int clock_cpu_setops(const struct rt_clock_cputime_ops *ops); +#ifdef RT_USING_CPUTIME_RISCV +int riscv_cputime_init(void); +#endif /* RT_USING_CPUTIME_RISCV */ + #endif |
