rcitachi
f11a58aa19
[libc] modify function names to resolve naming conflicts
2024-11-20 16:37:31 +08:00
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
guozhanxin
3143289486
[libc] update ctime.c compatible with old drivers
2023-11-16 13:09:32 +08: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
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
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
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
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
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
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
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
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
guozhanxin
03bcd0701c
[ci] fix build error.
2023-02-13 10:56:17 +08:00
zhkag
657cbfdac7
修复编译警告
2023-02-09 15:21:17 +08:00
zhkag
f4e9ec82bb
修复纳秒微妙混用转换错误
2023-02-07 15:48:47 +08:00
zhkag
bdd6811230
移除无用代码
2023-02-07 13:49:03 +08:00
zhkag
edd9c6721f
add timer lock
2023-02-07 13:49:03 +08:00
zhkag
7a1ad00aac
update timer
2023-02-07 13:49:03 +08:00
xieyangrun
21472e3ff0
fix cputime and ctime.
2023-01-10 10:03:35 +08:00
Meco Man
4ce39dd744
[libc][time] 修正POSIX 时间相关函数返回值错误
2022-12-29 20:23:33 -05:00
guo
68ca9f07a6
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 ( #6740 )
...
* [dfs] sync cromfs
* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration
* [format] fix some format issue.
2022-12-16 18:38:28 +08:00
Man, Jianting (Meco)
99bdf978d7
[rtdef] use lower-case to define attributes ( #6728 )
...
* [rtdef] rename RT_WEAK attribute as rt_weak
* [rtdef] rename RT_USED attribute as rt_used
* [rtdef] rename RT_SECTION attribute as rt_section
* [rtdef] rename ALIGN attribute as rt_align
* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
zhkag
2e488e0440
[rt-smart]同步 gitee nanosleep 修复 ( #6710 )
2022-12-08 10:02:40 -05:00
guo
ecf2d82159
sync branch rt-smart. ( #6641 )
...
* Synchronize the code of the rt mart branch to the master branch.
* TTY device
* Add lwP code from rt-smart
* Add vnode in DFS, but DFS will be re-write for rt-smart
* There are three libcpu for rt-smart:
* arm/cortex-a, arm/aarch64
* riscv64
Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
Tangyuxin
a4829b1c00
[fix] Fix simulator compilation warnings ( #6438 )
...
* [fix] Fix simulator compilation warnings
* Update bsp/simulator/rtconfig_project.h
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
Meco Man
a924da830e
[libc] 修复difftime函数在IAR下的编译错误
2022-07-20 10:07:03 +08:00
Meco Man
9623706eff
Revert "解决将RT_NULL当做数字0使用的问题"
...
This reverts commit 6a05ddf63d
.
2022-07-01 15:51:28 +08:00
Meco Man
6a05ddf63d
解决将RT_NULL当做数字0使用的问题
2022-07-01 11:39:28 +08:00
Man, Jianting (Meco)
8bee7a0c23
[libc] implement extension standard C functions ( #6044 )
...
* implement extension standard C functions
2022-06-19 21:56:24 +08:00