<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git, branch copilot/refactor-hwtimer-ktime-cputime</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/?h=copilot%2Frefactor-hwtimer-ktime-cputime</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/?h=copilot%2Frefactor-hwtimer-ktime-cputime'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-28T23:36:08Z</updated>
<entry>
<title>[clock_time] Fix rt_timespec_to_tick availability for POSIX semaphores</title>
<updated>2025-12-28T23:36:08Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-28T23:36:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=533806c34416a08c566608d3e776eeca4abff10d'/>
<id>urn:sha1:533806c34416a08c566608d3e776eeca4abff10d</id>
<content type='text'>
- Moved rt_timespec_to_tick outside of RT_USING_CLOCK_TIME guard
- Function now available with just RT_USING_POSIX_CLOCK defined
- Fixes undefined reference error when building with POSIX semaphores
- Maintains backward compatibility with configurations that don't use clock_time yet

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Fix all remaining ktime references in codebase</title>
<updated>2025-12-05T15:36:46Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-05T15:36:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c7d1918e3784cc69f0e945f8189bad224cafff1e'/>
<id>urn:sha1:c7d1918e3784cc69f0e945f8189bad224cafff1e</id>
<content type='text'>
- Updated dev_soft_rtc.c: RT_USING_KTIME → RT_USING_CLOCK_TIME
- Updated vdso_data.c (risc-v): rt_ktime_boottime_get_ns → rt_clock_time_boottime_ns
- Updated vdso_data.c (aarch64): rt_ktime_boottime_get_ns → rt_clock_time_boottime_ns
- Updated pic.c: rt_ktime_boottime_get_ns → rt_clock_time_boottime_ns
- Updated hwtimer-rockchip_timer.c: All rt_ktime_* → rt_clock_* APIs
- Renamed base_ktime_ts to base_clocktime_ts in soft_rtc
- All ktime API references replaced with clock_time equivalents

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Remove compatibility layers and refactor to direct implementation</title>
<updated>2025-12-04T17:06:21Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T17:06:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4f3448ca53f7cdc6ed0a202099ffa831ca1e2fc9'/>
<id>urn:sha1:4f3448ca53f7cdc6ed0a202099ffa831ca1e2fc9</id>
<content type='text'>
- Removed cputime_compat.c and ktime_compat.c
- Created clock_time_cputime.c for CPU time APIs (clock_cpu_*, rt_cputime_*)
- Created clock_time_boottime.c for boottime APIs (rt_boottime_*)
- Created stub cputime.h header for BSP compatibility
- Removed all compatibility type definitions from clock_time.h
- Removed compatibility Kconfig options
- Updated SConscript to build new files
- Replaced all rt_ktime_hrtimer_* calls with rt_clock_hrtimer_* in ctime.c
- Replaced all rt_ktime_* functions with rt_clock_* equivalents
- Simplified nanosleep() to use rt_clock_ndelay() directly

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Remove old subsystems and update to use only clock_time</title>
<updated>2025-12-04T15:55:27Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:55:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=390112d55ab2c1beea72004064f7e2a0e0cf7ace'/>
<id>urn:sha1:390112d55ab2c1beea72004064f7e2a0e0cf7ace</id>
<content type='text'>
- 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 &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Add implementation summary and finalize refactoring</title>
<updated>2025-12-04T15:41:43Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:41:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ba3db8c0342ffb8c13a37022d5058a1a8063a86d'/>
<id>urn:sha1:ba3db8c0342ffb8c13a37022d5058a1a8063a86d</id>
<content type='text'>
- Created comprehensive implementation summary document
- Documented design decisions, architecture, and migration strategy
- Listed all files created and modified
- Included testing status and future enhancements
- Ready for review and CI testing

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Add comprehensive examples and test code</title>
<updated>2025-12-04T15:37:04Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:37:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0866b88dc67339cfa3cf137e7592ea872c237586'/>
<id>urn:sha1:0866b88dc67339cfa3cf137e7592ea872c237586</id>
<content type='text'>
- Created clock_time_example.c with 7 different usage examples
- Added examples for info display, boottime, conversion, delays, timers
- Included performance benchmark example
- Added comprehensive examples README with troubleshooting guide

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Add README and example adapters</title>
<updated>2025-12-04T15:35:12Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:35:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0f3a297f4db6467705b6205c753e8dc06eeaa27a'/>
<id>urn:sha1:0f3a297f4db6467705b6205c753e8dc06eeaa27a</id>
<content type='text'>
- Added comprehensive README for clock_time subsystem
- Created ARM Generic Timer adapter example
- Created SysTick/DWT adapter example for Cortex-M
- Added adapter development guide with best practices

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Fix data type compatibility and add libc integration</title>
<updated>2025-12-04T15:31:44Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:31:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f3dd8afc7d329913f3271e5073884b1c3e4bfa7b'/>
<id>urn:sha1:f3dd8afc7d329913f3271e5073884b1c3e4bfa7b</id>
<content type='text'>
- Changed hrtimer cnt types from rt_uint64_t to unsigned long for ktime compatibility
- Added RT_USING_CLOCK_TIME support to libc/ctime.c
- Added proper type definitions for ktime compatibility layer
- Fixed all type casts and function signatures

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[clock_time] Add unified clock_time subsystem with documentation</title>
<updated>2025-12-04T15:26:42Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:26:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=32587a3096b1f961f349eec45bfb12cda81661f5'/>
<id>urn:sha1:32587a3096b1f961f349eec45bfb12cda81661f5</id>
<content type='text'>
- Created new clock_time subsystem consolidating hwtimer/ktime/cputime
- Implemented clock_time device abstraction with ops structure
- Added high-resolution timer (hrtimer) implementation
- Created compatibility layers for legacy APIs
- Added comprehensive English and Chinese documentation
- Updated Kconfig to mark old subsystems as deprecated

Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Initial plan</title>
<updated>2025-12-04T15:16:12Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-12-04T15:16:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=105820c3dbddf27ff7f9d0f6460120755e71045a'/>
<id>urn:sha1:105820c3dbddf27ff7f9d0f6460120755e71045a</id>
<content type='text'>
</content>
</entry>
</feed>
