Commit Graph

79 Commits

Author SHA1 Message Date
Man, Jianting (Meco) 423f0c6134 Revert "[kernel][timer] 修复在IAR下数据类型报错 (#6804)"
This reverts commit 93a7cff44c.
2023-03-01 02:11:59 -05:00
Man, Jianting (Meco) 93a7cff44c
[kernel][timer] 修复在IAR下数据类型报错 (#6804) 2023-01-02 12:42:55 +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
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
dongly 3363586cbb
Fix some compilation warning (#5744)
* Fix some compilation warning

* 补充修正一些数据类型的使用错误

Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
HubretXie 18116a3879
[kernel][timer] fixed bug (#6004) 2022-05-28 08:32:11 +08:00
Man, Jianting (Meco) 62d2403ebe
[kernel] beautify code (#5890) 2022-04-29 08:59:53 +08:00
Man, Jianting (Meco) 6295ec108e
[kernel] remove the register keyword (#5888) 2022-04-29 06:34:42 +08:00
Stanley ef7280826f
correct descriptions (#5849)
* correct descriptions

correct descriptions in ipc.c and timer.c

Co-authored-by: Stanley <stanleylwinn@gmail.com>
2022-04-21 09:35:17 +08:00
thewon86 f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
guo 52d0dc691c
[kernel]Fixed issue that could all timers stop (#5637) 2022-03-07 11:53:34 +08:00
Meco Man 36cbc1fd2f [workqueue] time参数改为ticks,防止误解单位为ms 2022-01-20 20:58:46 +08:00
Meco Man 1874bd25aa [timer] improve parameter checking 2022-01-20 20:58:46 +08:00
Meco Man 65ecca80ee [kernel] improve comments 2022-01-20 20:58:46 +08:00
xiangxistu 075e04e344
the support for PSE51 (#5534)
* [add] the function realization of signal for posix.
* [update] the posix support for armclang.
* [add] the new macro "RT_USING_POSIX_TIMER".
* [modify] select "RT_USING_SOFT_TIMER" when use posix'timer.
* [bug] optimize the logic for the "time_xxx" functions.
* [modify] use "RT_USING_POSIX_TIMER" to protect the macro definition.
* [modify] error code when except happened.
* [delete] the "environ" is useless at this time.
2022-01-20 20:53:47 +08:00
Gabriel Wang d7b8cf81e6 move some __on_rt_xxxxx_hook from rtdef.h to dedicated c soure files 2022-01-07 23:35:44 +00:00
armink 75063a1b5e [timer] update the RT_TIMER_CTRL_GET_STATE code in rt_timer_control 2021-11-25 15:31:43 +08:00
WillianChan 75b65ebcf2 [fix][kernel][timer]fixed timer ASSERT exception due to multithreaded scheduling
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2021-08-31 17:14:30 +08:00
supperthomas a35520f841 fix the return 2021-08-30 07:33:05 +08:00
supperthomas 320c44adf8 add the fixed comment 2021-08-28 23:33:13 +08:00
Meco Man 247f21f998 [kernel][timer] 规范内部函数和变量命名 2021-08-17 06:17:38 -04:00
supperthomas 19bcf9ae32 add the formatted file 2021-08-16 22:07:46 +08:00
supperthomas 30fd28a89a add the comment of timer.c 2021-08-15 23:04:35 +08:00
Meco Man 8b53609f57 [kernel] 补充endif后缀注释(3) 2021-06-10 18:39:43 +08:00
yangjie cd326d849a [src]移除 C99 依赖 2021-05-25 18:28:30 +08:00
Meco Man 678306d300 [kernel]auto formatted 2021-03-08 11:25:38 +08:00
张世争 72d7f6c0ad [update][kernel]规范rt_object_t强制转换的使用,消除上次提交的编译警告 2021-02-28 12:00:44 +08:00
张世争 62137eec9a [update][kernel]规范rt_object_detach的使用 2021-02-26 10:38:31 +08:00
Bernard Xiong 9971067f49
Merge pull request #4112 from enkiller/1203-0940
[timer] Fix the bug that the linked list is still mounted when the si…
2020-12-18 08:16:05 +08:00
tangyuxin 014105025a [timer] Fix the bug that the linked list is still mounted when the single timer is not modified 2020-12-03 09:43:09 +08:00
guozhanxin 7b28bc6ede Fixed an issue with rt_timer_start being broken and destroying the timer list 2020-11-27 10:35:13 +08:00
Bernard Xiong 1c6700acfd [kernel] fix the timer issue 2020-09-30 23:50:18 +08:00
xieyangrun 76d1651a74 fixed the iterator failure for softtimer list timeout check. 2020-08-15 20:15:29 +08:00
chenchaoqun 55cfefd90a [add] switch default clause 2020-07-27 11:50:48 +08:00
Bernard Xiong e0bc6b86ea [kernel] Remove named comments. 2020-04-10 00:02:24 +08:00
longtengmcu 720d8479a5 给软件定时器增加定时器工作状态查询的功能 2020-02-07 16:43:39 +08:00
xieyangrun 3b87cb8ded [src/timer.c]fixed rt_timer_list_next_timeout multi-task safe 2020-01-15 09:34:47 +08:00
Bernard Xiong de624c52c1 [Kernel] Enable RUNNING status in thread. 2019-01-13 11:23:08 +08:00
guozhanxin d343c6578a [kernel]Change 'rt_timer_timeout_hook' function to 'rt_timer_enter_hook' and add 'rt_timer_exit_hook' hook function. 2018-11-13 11:32:15 +08:00
Bernard Xiong ff08faf605 [Kernel] Adjust the copyright information 2018-09-25 11:06:07 +08:00
Bernard Xiong 41f7f2c284 [Kernel] Update to Apache License v2.0
Update license for RT-Thread kernel.
2018-09-14 22:37:43 +08:00
yangjie 4a43d3cdae [src][timer.c]:modify -RT_EOK to RT_EOK 2018-08-23 15:57:45 +08:00
liang yongxiang 2bbf98e5ed [kernel] add assert to timer object 2018-07-11 18:02:51 +08:00
BernardXiong 38b9ed3118 [Kernel] add sigwait implementation 2018-03-01 13:36:22 +08:00
bernard b27c7e4826 [Kernel] Add signal implementation.
1. Add signal implementation;
2. Change the 'rt_uint8_t' of cmd to 'int';
2017-10-15 22:31:53 +08:00
emlslxl e521decf2e 根据documentation/coding_style_cn.txt约定 对内核src和include目录下的文件代码进行格式化 2017-09-15 11:02:24 +08:00
dogandog 20fb863ddf Correct comments about doxygen format
chang /*@{*/ to /**@{*/ and /*@}*/ to /**@}*/
2016-08-19 10:19:46 +08:00
Grissiom 8615e2c8e5 kernel/timer: change row_lvl to unsigned
Use signed int as array index is unsecure.
2014-10-14 16:00:42 +08:00
Grissiom 30d68a515c src/timer: fix a compile warning 2014-07-16 22:05:02 +08:00
bernard 7a7e3002c8 [Kernel] system does not lock scheduler when invoking soft-timer timeout function. 2014-07-12 15:59:45 +08:00