rt-thread/components/drivers
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
..
audio [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
can [components][driver][can]Fix possible memory overflow caused by RX 2024-07-09 20:22:37 +08:00
clk [components][drivers]fix some uninitialize err (#8806) 2024-04-16 21:58:13 +08:00
core fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and "dlmodule.c". (#9093) 2024-06-26 23:25:23 +08:00
cputime [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
graphic [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
hwcrypto [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
hwtimer [components/drivers]update hwtimer (#8565) 2024-02-29 22:27:38 +08:00
i2c [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
include [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
ipc fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and "dlmodule.c". (#9093) 2024-06-26 23:25:23 +08:00
ktime [ktime] quality: remove recursion on hrtimer (#9110) 2024-06-28 00:22:06 +08:00
misc [bsp][stm32]Optimize ADCs and fix some bugs 2024-06-26 20:26:52 +08:00
mtd [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
ofw fix initrd scan err 2024-07-04 00:34:01 +08:00
phy [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
pic [components][ktime]support period ktime timeout and multiple ktimer_hrtimer (#8972) 2024-06-23 22:08:54 +08:00
pin fix pin ofw variable init. 2024-03-29 21:48:31 +08:00
pinctrl [component][drivers]add pinctrl/pin-irqchip (#8383) 2024-02-29 22:27:27 +08:00
pm [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
rtc [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
sdio fix a bug that read members in non-existent functions 2024-07-05 10:51:17 +08:00
sensor [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
serial [smart/tty] skip configure of rt_serial on tty open (#9152) 2024-07-09 13:28:24 +08:00
spi [components][SPI][spi-bit-ops]修复可能的异常操作 2024-07-12 17:48:17 +08:00
touch [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
usb fix(cherryusb): fix typo 2024-07-12 20:31:31 +08:00
virtio [driver][virtio]fix virtio net rx error (#9170) 2024-07-13 22:16:03 +08:00
watchdog [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
wlan [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054) 2024-06-16 15:43:27 +08:00
Kconfig [components][drivers]legacy fdt (#9062) 2024-06-19 19:48:35 +08:00
SConscript Re-normalizing the repo 2013-01-08 22:40:58 +08:00