Skip to content

Commit 390112d

Browse files
CopilotBernardXiong
andcommitted
[clock_time] Remove old subsystems and update to use only clock_time
- Deleted ktime, cputime, and hwtimer directories completely - Removed old header files (ktime.h, cputime.h, cputimer.h, hwtimer.h) - Updated ctime.c to only use RT_USING_CLOCK_TIME (removed RT_USING_KTIME conditionals) - Updated main drivers Kconfig to remove old subsystem entries - Added all legacy API declarations to clock_time.h when compatibility is enabled - Added legacy type definitions (rt_clock_cputime_ops, rt_cputimer) to clock_time.h - Removed ktime.h include from ktime_compat.c (types now in clock_time.h) - All POSIX time APIs (clock_gettime, clock_settime, timer_create, etc.) continue to work Co-authored-by: BernardXiong <[email protected]>
1 parent ba3db8c commit 390112d

File tree

26 files changed

+88
-2441
lines changed

26 files changed

+88
-2441
lines changed

components/drivers/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ rsource "ipc/Kconfig"
66
rsource "serial/Kconfig"
77
rsource "can/Kconfig"
88
rsource "clock_time/Kconfig"
9-
rsource "cputime/Kconfig"
109
rsource "i2c/Kconfig"
1110
rsource "phy/Kconfig"
1211
rsource "misc/Kconfig"
@@ -40,9 +39,7 @@ rsource "pci/Kconfig"
4039
rsource "pic/Kconfig"
4140
rsource "pin/Kconfig"
4241
rsource "pinctrl/Kconfig"
43-
rsource "ktime/Kconfig"
4442
rsource "clk/Kconfig"
45-
rsource "hwtimer/Kconfig"
4643
rsource "usb/Kconfig"
4744

4845
endmenu

components/drivers/clock_time/src/ktime_compat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
#include <rthw.h>
1313
#include <sys/time.h>
1414
#include <drivers/clock_time.h>
15-
#include <ktime.h>
1615

17-
/* Legacy ktime API wrappers */
16+
/* Legacy ktime API wrappers - all types defined in clock_time.h */
1817

1918
rt_err_t rt_ktime_boottime_get_us(struct timeval *tv)
2019
{

components/drivers/cputime/Kconfig

Lines changed: 0 additions & 41 deletions
This file was deleted.

components/drivers/cputime/SConscript

Lines changed: 0 additions & 18 deletions
This file was deleted.

components/drivers/cputime/cputime.c

Lines changed: 0 additions & 116 deletions
This file was deleted.

components/drivers/cputime/cputime_cortexm.c

Lines changed: 0 additions & 69 deletions
This file was deleted.

components/drivers/cputime/cputime_riscv.c

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)