4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 13:53:31 +08:00

3166 Commits

Author SHA1 Message Date
Meco Man
51cb109cf8 fix bug #3183 - align days[] and months[] to 4 bytes 2021-02-11 02:33:45 +08:00
Meco Man
5e5ceabfdc add ctime_r() and re-implement ctime() 2021-02-11 02:32:47 +08:00
Meco Man
072dbe57c6 format & add clear tm_isdst 2021-02-11 02:31:53 +08:00
Meco Man
66e2a9424b update 2021-02-10 21:01:16 +08:00
liruncong
0208fc5546 [components]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:46 +08:00
Meco Man
39ff4b5a97 修改时区计算公式的错误 2021-02-08 11:37:24 +08:00
Meco Man
2645aec2e3 删除没有用的预编译,在新版的IAR中此已经不需要了
对time函数增加RT_WEAK
2021-02-08 11:30:49 +08:00
Meco Man
3e9c77efd5 优化IAR 2021-02-08 10:55:08 +08:00
Meco Man
9b428e519f avoid warning 2021-02-08 10:42:50 +08:00
Meco Man
d0c2631b12 revert time() 2021-02-08 10:33:12 +08:00
Bernard Xiong
9345ebfa12
Merge pull request #4310 from mysterywolf/pin
[bug][pin] 修复错误码没有为负的错误
2021-02-08 09:09:05 +08:00
Meco Man
6c7dd30532 add function settimeofday & stime 2021-02-08 00:56:31 +08:00
Meco Man
4c6962436a update 2021-02-07 22:33:37 +08:00
Meco Man
d92f8a53da update 2021-02-07 22:25:30 +08:00
Meco Man
0d30632de6 fix #3976 2021-02-07 22:09:22 +08:00
Meco Man
86ebf17a23 localtim改为gmtime 2021-02-07 21:49:25 +08:00
Meco Man
f073911cd3 解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数 2021-02-07 21:08:41 +08:00
tangyuxin
83692a54c4 【workqueue】添加函数声明
rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue);
2021-02-07 11:14:59 +08:00
tangyuxin
a96156faf1 [workqueue] 提交正在执行的工作,返回 BUSY 2021-02-07 10:30:25 +08:00
tangyuxin
83dca09e1c [workqueue] 修复提交工作后立即取消,获取无效工作任务的问题
当高优先级任务提交工作后,立即取消。此时队列被唤醒,下面紧接着获取链表中第一个任务。但此时已经是空链表了。

每次线程被唤醒。检查当前任务链表是否未空
2021-02-06 21:54:25 +08:00
tangyuxin
7eabe5c9e9 [workqueue] 取消正在执行的工作返回BUSY 2021-02-06 20:39:52 +08:00
tangyuxin
3ef3fb50af [workqueue] 队列销毁时取消所有工作并释放内核对象 2021-02-06 20:15:50 +08:00
tangyuxin
d6b44ca52e [workqueue] 支持取消延时工作任务 2021-02-06 20:08:31 +08:00
Meco Man
23304a77d9 [bug][pin] 修复错误码没有为负的错误 2021-02-06 02:27:18 +08:00
Bernard Xiong
9787116870
Merge pull request #4272 from iysheng/master
[bsp][gd32103c-eval] Add hwtimer driver and modify adc driver with LOG_x function
2021-02-06 00:15:41 +08:00
Bernard Xiong
7fc236dddb
Merge pull request #4306 from mysterywolf/rtc
[libc][stm32-driver RTC] 修复RTC驱动以及libc time.c库若干问题
2021-02-05 20:23:24 +08:00
Meco Man
ffd270acef fix comment 2021-02-05 18:55:39 +08:00
wanghaijing
f62d8938dc [sdio] free memory and enhance performance 2021-02-05 15:49:30 +08:00
Meco Man
c2fca3dffe 修复RTC驱动以及libc time.c库若干问题 2021-02-05 13:13:22 +08:00
iysheng
a281ee9874 code format 2021-02-05 11:46:44 +08:00
Wayne
a50d81827a
Revert "fix the bug that rx_notice out of sync when data received after last rt_device_read() is zero" 2021-02-04 22:53:58 +08:00
tangyuxin
0230d32ca0 添加断言及注释 2021-02-01 15:02:22 +08:00
tangyuxin
b42506fb73 优化功能重复的代码 2021-02-01 15:02:21 +08:00
tangyuxin
c5218b5eee 修复紧急工作队列插入问题
紧急工作仍插入队列尾部,先将其插入队列头部
2021-02-01 15:02:20 +08:00
tangyuxin
5b52e6c7e3 修复同步取消锁中断等信号的问题 2021-02-01 15:02:19 +08:00
tangyuxin
5a16a2060e 定时处理函数临界区保护更加完整
定时器回调函数中,添加工作之前打开了中断。此时在极端情况下,会导致状态不对。
2021-02-01 15:02:18 +08:00
tangyuxin
10b5aa8f59 合并 cancel 和 cancel_delayed 函数,优化代码体积
合并 _workqueue_cancel_work 和 _workqueue_cancel_delayed_work 函数,优化代码体积
2021-02-01 15:02:17 +08:00
tangyuxin
0c87becb3e 合并 submit 和 submit_delayed,优化代码体积
将 _workqueue_submit_delayed_work 和 _workqueue_submit_work 函数合并成一个。优化代码体积
2021-02-01 15:02:16 +08:00
chenyong
cddf947863 [utilities][ulog] Add LOG_RAW ringbuffer to fix printing line limit issue
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-02-01 11:22:05 +08:00
Bernard Xiong
c4d16d706e
Merge pull request #4243 from zhouji92/master
[fix] 修复使用lwip 2.1.2作为协议栈,并使能dhcp server选项时,编译报错问题。
2021-01-29 14:21:33 +08:00
Wayne Lin
44e9a48f1d Enlarge ECC/DATA layout array size. 2021-01-26 17:04:47 +08:00
Wayne Lin
998e370ae1 Append RT_WEAK to override various ECC layout. 2021-01-26 10:44:00 +08:00
Bernard Xiong
46a2e685a2
Merge pull request #4258 from Lawlieta/chenyong
[utilities][ulog] fix ulog backend color log length calculation error
2021-01-24 07:44:22 +08:00
Bernard Xiong
f9c5007cae
Merge pull request #3271 from fmkong/sensor_irq_disable
[drivers/sensor]disable irq only when the sensor and module sensors a…
2021-01-22 18:35:21 +08:00
Bernard Xiong
b36aeb46a6
Merge pull request #4226 from redocCheng/master
解决添加RT_USING_MTD_NOR编译报错的问题
2021-01-22 18:24:04 +08:00
redoc
a04bb0be3a
删除换行 2021-01-22 13:45:41 +08:00
redoc
d0743d6090
1、【删除】多余语句 2021-01-22 13:44:15 +08:00
chenyong
43b1daf325 [utilities][ulog] fix ulog backend color log length calculation error
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-21 18:58:57 +08:00
Bernard Xiong
7ed63ef52b
Merge pull request #4250 from Trisuborn/master
为stm32的PWM驱动添加对STM32H7的支持、添加互补PWM功能的支持,补全pwm_get命令等
2021-01-21 11:58:52 +08:00
Trisuborn
3bf767dfe1 文本错误 2021-01-20 23:55:57 +08:00