rt-thread-official/bsp/allwinner/d1s
Shell 65ffe4e13e [libcpu/rv64] feat: unify tick.c
The changes unify the tick.c implementations for all risc-v64
architectures, leveraging the CPUTIME feature. This refactoring was
necessary to streamline the codebase, and ensure consistent timer
handling across different platforms.

Changes:
- Updated `Kconfig` in `bsp/cvitek/cv18xx_risc-v` to fix formatting issues.
- Updated .config for BSPs to update `CPUTIME_TIMER_FREQ`
- Updated header of for API `riscv_cputime_init`
- Initialized riscv timer on `rt_hw_tick_init`
- Refactored `tick.c` and `tick.h` in `libcpu/risc-v/t-head/c906` and `libcpu/risc-v/virt64`:
  - Replaced direct use of `rdtime` with `clock_cpu_gettime`.
  - Removed redundant timer frequency definitions.
  - Added static assertions to check the value of `CPUTIME_TIMER_FREQ`.
  - Initialized `tick_cycles` based on `CPUTIME_TIMER_FREQ`.
  - Integrated `ktime` support for tick initialization.

Signed-off-by: Shell <smokewood@qq.com>
Reviewed-on: https://github.com/RT-Thread/rt-thread/pull/9164
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
2024-07-15 12:06:39 +08:00
..
applications [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142) 2024-07-09 13:35:03 +08:00
board [ci] open ci check with function declaration warning (#8546) 2024-02-20 22:45:04 -05:00
figures sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
ports [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142) 2024-07-09 13:35:03 +08:00
tools sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
.config [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
.gitignore sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
Kconfig [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
README-M7.md sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
README-MQ.md sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
README.md sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
SConscript sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
SConstruct [bsp/allwinner]update allwinnter libraries object file path (#7482) 2023-05-12 22:50:21 +08:00
link.lds format link scripts 2023-01-08 22:52:13 -05:00
link_stacksize.lds format link scripts 2023-01-08 22:52:13 -05:00
mkimage sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
mksdcard.sh [D1s]Add mksdcard.sh 2023-01-19 21:40:49 -05:00
mksdimg.sh sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
rtconfig.h [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
rtconfig.py [rt-smart] porting c906 and D1s to mm (#6848) 2023-01-16 08:24:03 +08:00
sbi.bin sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
toc1.cfg sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
u-boot.dtb sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00

README.md