Commit Graph

43 Commits

Author SHA1 Message Date
Bernard Xiong
743b614875 [components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
Yonggang Luo
b2d6e2c268 Use time_t for RT_DEVICE_CTRL_RTC_GET_TIME RT_DEVICE_CTRL_RTC_SET_TIME 2025-10-11 15:27:04 +08:00
CXSforHPU
bb91502465 [drivers] Specifies the name of the drivers driver file
https://github.com/RT-Thread/rt-thread/pull/9420
2024-09-13 17:40:40 -04:00
kk
2549b82bd6 [pin] pin_read/write rt_uint8_t to rt_ssize_t 2024-03-23 14:50:31 -04:00
zms123456
d01dd05a0c [kernel][dm]适配新的设备驱动模型 (#8075) 2023-10-18 20:50:30 +08:00
sp-cai
0ebec472e1 [components][i2c] 优化 controt 接口格式,增加可用命令 (#7806)
原来 rt_i2c_control 只能执行 RT_I2C_DEV_CTRL_CLK 单一命令,通过此修改可以支持更多可用命令
2023-07-13 21:57:40 -04:00
supperthomas
c94a849ba4 [CI][action] optimize the action view (#7480) 2023-05-12 12:03:26 +08:00
Placebo27
538158bf20 [bsp] fix mismatched function types in rt_pin_ops for all drv_gpio.c (#7457) 2023-05-08 23:35:27 -04:00
Meco Man
0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
Meco Man
dfddd79b24 [errno code][-RT_EINVAL] fix that use RT_EINVAL without - 2023-03-16 20:21:43 -04:00
Meco Man
2cc9bd876e [error code][-RT_EIO] fix that use RT_EIO without - 2023-03-16 20:20:37 -04:00
Meco Man
f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Meco Man
9bc68d26a4 format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
Shell
7450ef6c4d [rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works.
adding kernel virtual memory management layer for page-based MMU enabled architecture
porting libcpu MMU codes
porting lwp memory related codes
2023-01-08 21:08:55 -05:00
Shell
e8504c7cf1 [smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
2022-12-20 17:49:37 +08:00
Man, Jianting (Meco)
2c10d5ad01 [rtc] use gmtime_r to replace gmtime (#6012)
* [rtc] use gmtime_r to replace gmtime
2022-06-22 13:41:06 +08:00
GUI
0a8dd10b0b [libcpu/aarch64] add gtimer frq set and stack align (#5642)
* [libcpu/aarch64] add smp support

* [libcpu/aarch64] rt_hw_trap_irq get irq instead of iar when using gicv2

* [libcpu/aarch64] disable irq/fiq when switch thread

* [libcpu/aarch64] add gtimer frq set and stack align
2022-03-07 22:41:56 +08:00
Man, Jianting (Meco)
bb1084556f [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题

* format codes

* [libc] 整理格式

* refresh projects
2022-01-09 00:20:32 +08:00
GuEe-GUI
353f717037 [libcpu/aarch64] add smp support 2022-01-08 18:24:02 +08:00
fanhuanji
2d6791d592 BugFix: Raspi3 GPIO driver write bug 2021-12-08 22:33:23 +08:00
Meco Man
a1cc3d43e7 modify time.h to sys/time.h 2021-11-23 22:38:00 -05:00
GuEe-GUI
740cd9dfb0 Merge AArch64 libcpu and add some drivers for their bsps 2021-09-26 15:01:59 +08:00
GuEe-GUI
b7dd004de0 [bsp/virt64/aarch64] Add 'qemu-virt64-aarch64' bsp 2021-08-06 18:35:58 +08:00
Meco Man
1af9bbce32 [raspi] auto formatted 2021-03-14 12:58:10 +08:00
Meco Man
86ebf17a23 localtim改为gmtime 2021-02-07 21:49:25 +08:00
Meco Man
f073911cd3 解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数 2021-02-07 21:08:41 +08:00
yangjie
38b3a3445e [bsp][driver] 初始化 BSP 中的 rt_pin_ops 2020-09-11 11:16:42 +08:00
bigmagic
6251fc93b6 [bsp/raspi]fix hdmi driver 2020-04-26 09:53:59 +08:00
bigmagic
2099924e20 add raspi3 mbox option 2020-04-26 09:53:59 +08:00
bigmagic
efbb5490d7 add soc timer cntpct 2020-04-03 20:18:18 +08:00
bigmagic
f6a13de08f add raspi3-64 spi driver 2020-03-18 14:22:15 +08:00
bigmagic
ba482c3346 add raspi3-64 i2c driver 2020-03-18 14:22:05 +08:00
bigmagic
7d23d713ed fix raspi3 hdmi driver 2020-03-02 20:49:27 +08:00
bigmagic
0279daeeee add raspi3 mbox driver 2020-03-02 20:49:27 +08:00
bigmagic
d5f8397009 add raspi3-64 wdt driver 2020-03-02 20:49:27 +08:00
bigmagic
ff10eaed9c [bsp/raspi3-64]fix gpio drvier 2020-03-02 20:49:27 +08:00
bigmagic
e09c99fcfb fix raspi3-64 sdio driver 2020-02-28 14:56:56 +08:00
bigmagic
773f7cdf52 [bsp/raspi3-64]add core timer driver 2020-02-26 15:35:07 +08:00
bigmagic
0458f0b798 remove comments in Chinese and keep the code style 2020-02-20 23:00:17 +08:00
bigmagic
0471b6d344 [bsp/raspi3] raspi3 mmu 2020-02-20 23:00:17 +08:00
yangwu
55eaea2f26 make spi driver pass compiling 2020-02-16 22:12:07 +08:00
yangwu
7c94a2c3f6 fix recursive macro dependency 2020-02-16 22:10:41 +08:00
bigmagic
fdde8ab198 add raspi2 and raspi3 BSP 2020-01-10 10:38:21 +08:00