<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/libc/compilers/common/ctime.c, 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/components/libc/compilers/common/ctime.c?h=copilot%2Frefactor-hwtimer-ktime-cputime</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/libc/compilers/common/ctime.c?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] 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] 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>compute ns with rt_int64_t instead of int64_t in ctime.c</title>
<updated>2025-10-13T13:44:01Z</updated>
<author>
<name>Yonggang Luo</name>
<email>luoyonggang@gmail.com</email>
</author>
<published>2025-09-27T09:47:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=517e5b132b5d4221f08e6facc8c5397199219b73'/>
<id>urn:sha1:517e5b132b5d4221f08e6facc8c5397199219b73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components] When rtc is not enabled, use other clock sources instead (#9747)</title>
<updated>2024-12-06T12:13:03Z</updated>
<author>
<name>wycwyhwyq</name>
<email>5f20.6d9b@gmail.com</email>
</author>
<published>2024-12-06T12:13:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6876cb6f7361fd6bc754a1dc15ced54c770f005d'/>
<id>urn:sha1:6876cb6f7361fd6bc754a1dc15ced54c770f005d</id>
<content type='text'>
When rtc is not enabled, use other clock sources instead

Signed-off-by: wycwyhwyq &lt;5f20.6d9b@gmail.com&gt;</content>
</entry>
<entry>
<title>[libc] modify function names to resolve naming conflicts</title>
<updated>2024-11-01T22:44:16Z</updated>
<author>
<name>rcitachi</name>
<email>yearsince@yeah.net</email>
</author>
<published>2024-11-01T22:44:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7c273195215637a6754d0021ccff1b095eff9b3d'/>
<id>urn:sha1:7c273195215637a6754d0021ccff1b095eff9b3d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[libc] 修复 ctime()死机问题</title>
<updated>2024-09-03T22:13:09Z</updated>
<author>
<name>yandld</name>
<email>1453363089@qq.com</email>
</author>
<published>2024-09-03T09:32:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=635e16a8d54db94c878a4bfc624cc4c38f0b8a35'/>
<id>urn:sha1:635e16a8d54db94c878a4bfc624cc4c38f0b8a35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add RT_USING_RTC conditional compilation protection in ctimer.c</title>
<updated>2024-08-12T07:56:17Z</updated>
<author>
<name>Z8MAN8</name>
<email>1468559561@qq.com</email>
</author>
<published>2024-08-12T01:52:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1d646bcf56f6947643e8ed507875c648cdf3d195'/>
<id>urn:sha1:1d646bcf56f6947643e8ed507875c648cdf3d195</id>
<content type='text'>
Analysis: There is still an omission in the preprocessing control of
_control_rtc in 24b0a81 ("Add RT_USING_RTC conditional
compilation protection in ctimer.c")

Solution: Add RT_USING_RTC preprocessing control to missing
_control_rtc

Signed-off-by: Shicheng Chu &lt;1468559561@qq.com&gt;
</content>
</entry>
<entry>
<title>Add RT_USING_RTC conditional compilation protection in ctimer.c</title>
<updated>2024-08-11T06:37:36Z</updated>
<author>
<name>Z8MAN8</name>
<email>1468559561@qq.com</email>
</author>
<published>2024-08-11T04:12:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=24b0a8174fd4ba1fbbc2510023e3fbc02ecf8de6'/>
<id>urn:sha1:24b0a8174fd4ba1fbbc2510023e3fbc02ecf8de6</id>
<content type='text'>
Analysis: RT_USING_RTC preprocessing is used in 47cd52d ("修复不
使能 RT_USING_DEVICE 时编译报错") to control the reference of
rtdevice.h, as well as the implementation and call of _control_rtc,
but there are some omissions.

Solution: Add RT_USING_RTC preprocessing control to missing
_control_rtc

Signed-off-by: Shicheng Chu &lt;1468559561@qq.com&gt;
Reviewed-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
</feed>
