yandld
635e16a8d5
[libc] 修复 ctime()死机问题
2024-09-03 18:13:09 -04:00
Z8MAN8
1d646bcf56
Add RT_USING_RTC conditional compilation protection in ctimer.c
...
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 <1468559561@qq.com>
2024-08-12 15:56:17 +08:00
Z8MAN8
24b0a8174f
Add RT_USING_RTC conditional compilation protection in ctimer.c
...
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 <1468559561@qq.com>
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
2024-08-11 14:37:36 +08:00
马龙伟
47cd52d162
修复不使能 RT_USING_DEVICE 时编译报错 ( #9145 )
...
* 修复不使能 RT_USING_DEVICE 时编译报错
* 删除 ctime.c 中多余引用
2024-08-04 09:56:47 +08:00
zms123456
22b5e5fd7b
[components][ktime]support period ktime timeout and multiple ktimer_hrtimer ( #8972 )
...
* support period time
* enable multiple ktimer
* mv set delay_cnt to hrtimer_start
* add ktime debug info
* change current_irq_begin to local var
* fix bug: setting current timer and setting timeout in driver aren't atomicly
* create->init
* refactoring ktime
2024-06-23 22:08:54 +08:00
zms123456
5ca1e45020
[components][drivers]improve ktimer sleep ( #8838 )
...
improve ktimer sleep
2024-04-22 11:55:20 +08:00
Shell
864055bf18
[fixup] aarch64 UMP compiler error ( #8677 )
...
Signed-off-by: Shell <smokewood@qq.com>
2024-03-30 17:58:38 +08:00
Shell
83e95bdff4
sync smart & dfs ( #8672 )
...
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Shell
71560bafb5
🎯 Sync smart & scheduler codes ( #8537 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
Meco Man
6cc63626d7
fix some -Wmissing-prototypes warnings
2024-01-02 21:25:26 +08:00
Meco Man
045a49603e
[libc] fix undefined warning of rt_memset
2023-12-28 17:47:59 +08:00
guozhanxin
c9a63df925
[fix] sal build error.
2023-11-16 16:25:37 +08:00
guozhanxin
3143289486
[libc] update ctime.c compatible with old drivers
2023-11-16 13:09:32 +08:00
shu-qian
c7e0a96f6f
[libc] add comments to the cstdlib.c ( #8209 )
...
Co-authored-by: sq <1838545301@qq.com>
2023-11-01 05:31:57 -04:00
kk
1d3fc71c79
[libc] [ctime] fix rt_timespec_to_tick fun internal data overflow ( #8198 )
2023-10-31 08:59:01 -04:00
Shell
eafb04e011
[ctime] fixup of data racing ( #8187 )
...
Signed-off-by: Shell <smokewood@qq.com>
2023-10-26 13:56:27 +08:00
xqyjlj
3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable ( #8042 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
梁生
0f5334586a
[libc][time]修复MDK编译环境下difftime()函数多重定义的问题 ( #8174 )
2023-10-24 09:12:10 -04:00
zmq810150896
092b52ab24
Adapt rt_channel, increase the generality of some rt_channel functionality on dfs v2, and standardize signalfd ( #8047 )
2023-09-20 07:54:11 +08:00
TangZhenye
810da67b6f
[ctime] 避免时区为负数时引入的隐式转换问题
2023-08-28 22:26:26 -04:00
geniusgogo
d55066e10d
cleanup: fix building warnings
2023-08-23 22:58:25 -04:00
Meco Man
b08d8672d2
[libc][posix/io/stdio] rename libc.c as posix/stdio.c
2023-08-17 02:22:53 -04:00
Meco Man
8061503171
[libc][time] pre-support fully version timezone and daylight saving time
2023-08-13 22:51:58 -04:00
Meco Man
432c2f38fc
[libc][timezone] implement lightweith timezone configuration
2023-08-13 22:51:58 -04:00
Meco Man
92859cc79e
[libc][time] silence the incorrect type warning
2023-08-08 22:15:47 -04:00
Shell
215c6c0ea5
[components/ctime] fix the free of rt_work ( #7882 )
...
Signed-off-by: Shell <smokewood@qq.com>
2023-08-01 00:00:25 +08:00
Shell
52d3637fba
[smart] fix possible memory leak ( #7832 )
...
Signed-off-by: Shell <smokewood@qq.com>
2023-07-22 10:30:29 +08:00
Meco Man
f52095d228
[libc][time] cleanup code
2023-07-21 00:31:35 -04:00
xqyjlj
5f0328ee41
✨ feat(ktime): add RT_USING_KTIME to kconfig build
2023-07-20 09:25:18 -04:00
Shell
58e0ddf287
[component/lwp] support more feature of signal from IEEE Std 1003.1-2017 ( #7828 )
...
Signed-off-by: Shell <smokewood@qq.com>
2023-07-20 00:02:41 +08:00
xqyjlj
0eb75ced70
[time]时钟框架重构 ( #7794 )
2023-07-17 20:11:58 +08:00
zhkag
077e984175
[libc]更新 libc timer id 分配方式 ( #7744 )
2023-06-29 00:01:51 +08:00
yangjie11
d256d742d1
[components][time.h]Fixed undefined macro TIMER_ABSTIME
2023-06-14 06:31:10 -04:00
Mingjie Shen
c7ad493b9a
[libc][ctime] move null pointer check before dereference
...
This null check was redundant because the pointer timep was
dereferenced in any case.
2023-06-13 18:29:22 -04:00
Bernard Xiong
99e80f8d33
[dfs] Add DFS v2.0 ( #7606 )
2023-06-10 21:35:25 +08:00
zhkag
22972409d4
[simulator] 修复 linux simulator 编译运行失败
2023-06-07 08:52:28 -04:00
goldengrandpa
e88a19467e
[ctime]解决clock_gettime计算出来的nsec超过1sec的问题
2023-05-31 22:52:33 -04:00
guozhanxin
ca873fae30
[add] llvm-arm workflows
2023-05-17 12:09:10 -04:00
guozhanxin
82ccbc40db
support llvm-arm 16.0
2023-05-17 12:09:10 -04:00
zhkag
3419e591da
[libc] redirecting header sys/ioctl to bits/ioctl
2023-05-05 19:29:38 -04:00
xqyjlj
fd1413d29b
🎈 perf(components/libc/compilers/common/ctime.c): if define cputime, then CLOCK_REALTIME use cputime ( #7343 )
2023-04-22 09:09:40 +08:00
xqyjlj
970c7c6f7a
🐞 fix(components/drivers): fix cpu timer in multithreading ( #7222 )
...
* 🐞 fix(components/drivers): fix cpu timer in multithreading
* 🎈 perf(components): change double to uint64_t
* 🎈 perf(components): add UL suffix
2023-04-13 16:00:19 +08:00
Shicheng Chu
93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object ( #7131 )
2023-04-04 09:06:27 -04:00
Lei Peng
517b5eb016
[libc][ctime] stime clear tv.tv_usec as zero
...
when using stime set rtc time, tv.tv_usec not 0,but always is 0xdeadbeef, make set time error
2023-03-30 23:57:19 -04:00
xqyjlj
cd1e0a7901
✨ feat(components): add statfs, statfs64, fstatfs, fstatfs64 support
2023-03-31 10:56:37 +08:00
xqyjlj
157dc0959c
✨ feat(components): add uname support
2023-03-31 10:56:37 +08:00
geniusgogo
ab7ab19be5
fixed ctime timer_delete timerid parameter check. ( #6977 )
...
* fixed ctime timer_delete timerid parameter check.
2023-02-27 09:59:45 +08:00
wangxiaoyao
1c2daeafdc
[fix] typo
2023-02-21 08:48:49 +08:00
wangxiaoyao
f84d89b0ca
[libc] including musl signal.h with _POSIX_SOURCE
2023-02-21 08:48:49 +08:00
zhkag
0f85648cfb
Improve timer accuracy and realize ( #6926 )
...
* add cputimer frame
* add cputime sleep
* ctime use cputime
* Processing cputime has no timeout function
* Migration cputime Code
* formatting file
* 整理代码
* add document copyright information
* 改 cputime_timer 为 cputimer
* 简化 _cputimer_list 初始化
* rt_cputimer_create -> rt_cputimer_init
* Remove RT_USING_CPUTIME and code cleanup.
* Remove RT_USING_CPUTIME in cputimer.c
* Set set_next_timeout as static function.
---------
Co-authored-by: Bernard Xiong <bernard.xiong@gmail.com>
2023-02-15 20:46:22 +08:00