Commit Graph

3421 Commits

Author SHA1 Message Date
liuxianliang 9f45c13ac9 [update] the "event_callback" will be change by RT-Thread dfs. 2021-06-28 11:18:28 +08:00
liuxianliang ff4a936812 [add] the support of lwip 2.0.3. 2021-06-25 15:58:43 +08:00
Bernard Xiong fcb0a47328
Merge pull request #4819 from whj4674672/pm
[pm] index should be less than PM_MODLUE_MAX_ID
2021-06-24 21:32:25 +08:00
Bernard Xiong 8a23d0ccf2
Merge pull request #4796 from mysterywolf/__CLANG_ARM
将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION
2021-06-24 21:05:05 +08:00
guo 95cea205b1
Merge pull request #4812 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
2021-06-23 13:45:38 +08:00
Meco Man fa3d95bb1c [libc][syscall]整理函数格式 2021-06-23 01:37:41 +08:00
wanghaijing 5d4260ab6d [pm] index should be less than PM_MODLUE_MAX_ID 2021-06-22 23:56:55 +08:00
guo 6f1a505cd2
Merge pull request #4801 from mysterywolf/delay2
implement delay.c/.h
2021-06-21 17:14:05 +08:00
Bernard Xiong bccdf912c8
Merge pull request #4764 from KyleChenjh/master
[serial] 增加serial_v2版本的框架和基于stm32的串口驱动
2021-06-21 14:29:04 +08:00
guo b032f9a6e2
Merge pull request #4793 from mysterywolf/lwipcc
[bug][lwip] 修复lwip临界区保护的bug
2021-06-20 11:27:52 +08:00
chenjh 0613cf8ca2 [serial] 解决serial_close未清除回调接口的问题 2021-06-18 14:54:37 +08:00
rtthread-bot 82560192a0 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-06-17 16:30:09 +00:00
bernard 82f3a84ec8 !64 componets:fix at_server_getchar spelling error
Merge pull request !64 from fwatch/dev
2021-06-17 08:52:20 +00:00
rtthread-bot 1e7dfa694f Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-06-16 09:32:46 +00:00
chenjh 5ac5d92cbb [serial] 优化发送非阻塞时,serial_close未执行rt_completion_done的问题。 2021-06-16 16:55:33 +08:00
Meco Man 56e3571e8a implement delay.c/.h 2021-06-16 14:15:31 +08:00
Meco Man 6697fa0ff5 [sleep] 加入调度器尚未运行时的延时情况 2021-06-16 12:16:11 +08:00
Bernard Xiong ac50f5193e
Merge pull request #4792 from mysterywolf/ioctl
[libc][rtlibc] remove libc_ioctl.h
2021-06-16 09:46:06 +08:00
guozhanxin 66b7289ee7 [update] usleep supports calling in interrupts. 2021-06-15 18:37:39 +08:00
Meco Man 921e606426 将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION 2021-06-13 17:36:42 +08:00
Meco Man 5bb6e86cf5 [sys/errno.h] 修复armclang支持问题 2021-06-13 17:27:16 +08:00
Meco Jianting Man 4fd4074617 Merge branch 'RT-Thread:master' into ioctl 2021-06-13 16:19:59 +08:00
Meco Man 485df7a1f4 [bug][lwip] 修复lwip临界区保护的bug 2021-06-13 15:43:44 +08:00
Meco Man 3b74f44d10 [lwip][cc]调整string.h位置 2021-06-13 13:10:20 +08:00
Meco Man fbcaa667f8 add sys/ioctl for serial 2021-06-13 12:51:07 +08:00
Meco Man f94980af34 solve conflict 2021-06-13 12:45:04 +08:00
guo b516cbd2ae
Merge pull request #4790 from mysterywolf/errno
[master][rtlibc] remove libc_errno.h & libc_limits.h
2021-06-13 09:36:29 +08:00
Meco Man 4c625fcb2f [lwip][cc] LWIP_TIMEVAL_PRIVATE: provided by <sys/time.h>
不需要再判断是否开启libc
2021-06-12 18:40:15 +08:00
Meco Man ae0e0bdad4 [cputime] add sys/errno.h 2021-06-12 18:17:18 +08:00
Meco Man 740a810274 [errno][libc] 解决sys头文件在libc未开启时的引入问题 2021-06-12 18:11:51 +08:00
Meco Man 7fd22c9546 [msh]implement tail command 2021-06-09 16:45:40 +08:00
chenjh fac3c5cda1 [serial] 优化dma接收处理流程,解耦驱动调用串口框架的API接口 2021-06-08 09:38:43 +08:00
chenjh d94be14df5 [serial] 增加serial_v2版本的框架和基于stm32的串口驱动 2021-06-08 09:38:43 +08:00
sszlbg 57eb1c5a80 修改at_obj_set_urc_table函数重新分配内存可能导致内存泄漏问题 2021-05-29 15:51:12 +08:00
liuduanfei ec1f22b87d 添加 rt_workqueue_critical_work 声明 2021-05-28 17:32:01 +08:00
Meco Man 07cab33b50 add sys/ioctl.h for pipe.c 2021-05-23 00:30:29 +08:00
Meco Man 5bce564738 add sys/ioctl.h for posix_termios.h 2021-05-23 00:25:49 +08:00
Meco Man 0e32728a5d [libc][rtlibc] remove libc_ioctl.h 2021-05-23 00:17:08 +08:00
geniusgogo 6c01083502 fix shell msh_exec memory over-bound. 2021-05-22 19:52:50 +08:00
Meco Man ac3b3d13dd LWIP2.0.2 2.1.2 移除ERRNO
该定义只应该在141中使用到了
2021-05-22 12:13:31 +08:00
Meco Man 9352fdeba7 从LWIP移除ESHUTDOWN 2021-05-22 12:04:30 +08:00
Meco Man b10bef6f24 [sys/errno.h] 修复lwip报错 2021-05-22 03:20:01 +08:00
Meco Man 0e0e2a0f95 fix warning of posix_signal 2021-05-22 02:56:53 +08:00
Meco Man a5f7635f31 remove libc_errno.h & libc_limits.h 2021-05-22 02:50:35 +08:00
Bernard Xiong 126af8e43c
Merge pull request #4712 from mysterywolf/devfs
[dfs] 将文件系统默认最大数量以及最大类型改为4
2021-05-21 21:27:42 +08:00
Meco Man 8676fd966e [dfs] 将文件系统默认最大数量以及最大类型改为4 2021-05-21 18:02:43 +08:00
Meco Man 14c29063e8 [devfs] _device_fs增加注释 2021-05-21 17:50:57 +08:00
Bernard Xiong 0dc972bee6
Merge pull request #4707 from armink/fix_ulog
[ulog] Add output locker enabled API
2021-05-21 15:02:22 +08:00
Bernard Xiong 5fb709d72f
Merge pull request #4706 from mysterywolf/ymodem
[ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
2021-05-21 15:01:53 +08:00
Meco Jianting Man 7ab3b4dedc
移除cmd.c首行空白行 2021-05-21 10:09:26 +08:00
armink e0b9987508 [ulog] Add output locker enabled API
Signed-off-by: armink <armink.ztl@gmail.com>
2021-05-19 18:17:37 +08:00
Meco Man 4aaf52ae9e [ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
目前开启的逻辑存在问题,ymodem的文件传输功能开启的前提是得有完整的文件系统,
但是目前,这个开启逻辑错了。
用户选择YMODEM_USING_FILE_TRANSFER功能后select DFS没有任何意义,因为除了需要依赖DFS之外还要依赖其他的例如FATFS,需要和SDIO适配等等等
正确的做法应该是用户配置好完整的文件系统后,ymodem文件传输才能有机会开启,
因此是depends on DFS 而非select DFS
更改之后,只要用户开启了文件系统,在选定YMODEM时,会自动开启文件传输功能,这也是用户希望看到的,直接一键搞定,不需要再多点一步
2021-05-19 12:59:33 +08:00
Bernard Xiong 6dc38962a9
Merge pull request #4691 from ShermanShao/master
[add] add new component: rt-link
2021-05-16 08:57:51 +08:00
Bernard Xiong 6cb1d4efcc
Merge pull request #4693 from mysterywolf/sim-sconcsript
[libc][bug] 修复在simulator win32平台下,none-gcc文件夹路径没有添加到工程的bug
2021-05-16 08:56:29 +08:00
Meco Man cbcd9fe15e [POSIX] beautify Kconfig 2021-05-16 00:02:58 +08:00
Meco Man d9abe8fa30 修复在simulator win32平台下,nonegcc文件夹路径没有添加到工程的bug 2021-05-15 21:27:31 +08:00
Sherman 21f9e56253 [add] add new component: rt-link 2021-05-15 16:52:49 +08:00
Meco Man dfb8df71c9 [libc]修复因libc移除sys/errno.h文件导致的报错 2021-05-12 14:17:17 +08:00
Bernard Xiong 1c823b3fc0
Merge pull request #4669 from mysterywolf/rtc_pre
[rtc] 将RTC框架内的NTP部分移除
2021-05-12 09:01:47 +08:00
Bernard Xiong 97c357b135
Merge pull request #4670 from mysterywolf/network
[network][lwip][kconfig] 默认LWIP协议栈版本由2.0.2转为2.1.2
2021-05-10 12:24:54 +08:00
Meco Man fdd2859cb5 [network][lwip][kconfig] 默认LWIP协议栈版本由2.0.2转为2.1.2 2021-05-09 20:37:12 +08:00
Meco Man 7e7066f741 [Kconfig][driver]删除NTP相关配置 2021-05-09 19:43:50 +08:00
Meco Man e71e693fd1 移除readme关于NTP部分 2021-05-09 16:10:58 +08:00
Meco Man 3fd276bb44 add comment 2021-05-09 15:59:27 +08:00
Meco Man 9de977a046 remove list_date 2021-05-08 23:51:47 +08:00
Meco Man 43e9aec85e 将rt_soft_rtc_init设为私有函数 2021-05-06 23:47:33 +08:00
Meco Man f982d81389 [rtc driver]remove NTP 2021-05-06 23:43:44 +08:00
Bernard Xiong c415410498
Merge pull request #4654 from mysterywolf/timezone
[libc][time]优化gettimeofday/settimeofday; 规范set_timeval/get_timeval函数返回值
2021-05-06 16:55:32 +08:00
Bernard Xiong ed900427cd
Merge pull request #4657 from OpenNuvoton/touch_class
[components/drivers/touch] Bypass controlling commands in touch class to device driver.
2021-05-05 21:38:54 +08:00
bernard 141effcae3 !191 调整串口关闭时中断禁用和资源释放顺序
Merge pull request !191 from AubrCool/fix-serial.drv
2021-05-04 15:20:05 +08:00
Meco Man 787e46c6a3 [rtc]调整rtc驱动框架函数位置,功能无影响,为后续新的RTC框架铺路 2021-05-04 13:06:24 +08:00
Wayne Lin 4ed550a96c Bypass controlling commands in touch class to driver. 2021-05-03 13:21:47 +08:00
Meco Man 8fee8d2c8c remove const in set_timeval 2021-05-03 09:17:46 +08:00
Meco Man 1a55702ccb 修复DST_NONE 等宏定义位置放错导致报错的问题 2021-05-02 09:38:41 +08:00
Meco Man 3f74758f31 将<sys/time>改为"sys/time.h" 2021-05-02 09:29:46 +08:00
Meco Man 8ec1a63b23 增加tz_dsttime类型定义 2021-05-02 09:24:41 +08:00
Meco Man 47de526525 精简settimeofday代码;
在Linux中settimeofday以及gettimeofday函数的时区功能已经被废弃,因此增加注释予以提示。
gettimeofday实现了tz_minuteswest功能,tz_dsttime功能未实现,按废弃处理;
settimeofday时区功能废弃。
2021-05-01 16:22:27 +08:00
Meco Man 6fa385b987 [time] 补充注释 2021-05-01 14:23:50 +08:00
Meco Man f4015029d2 gettimeofday()函数支持时区;规范set_timeval/get_timeval函数返回值 2021-05-01 14:18:46 +08:00
Bernard Xiong be3b5a950f
Merge pull request #4653 from mysterywolf/fixed-timezone
[libc][time]增加手动设置固定时区的功能
2021-05-01 10:58:24 +08:00
Bernard Xiong beb2f046c4
Merge pull request #4649 from mysterywolf/libc2
[libc][time] remove _TIMESPEC_DEFINED in common/sys/time.h and complete time.c
2021-05-01 10:58:10 +08:00
Meco Man a611a66864 精简代码 2021-05-01 06:08:14 +08:00
Meco Man 65984a7116 add comment 2021-05-01 06:06:03 +08:00
Meco Man 0aa3b80fc3 在time.c中增加RT_LIBC_FIXED_TIMEZONE默认值,防止有些工程没有配置RT_LIBC_FIXED_TIMEZONE 2021-05-01 06:03:46 +08:00
Meco Man a7a3ca9f02 增加手动设置时区的功能 2021-05-01 05:52:55 +08:00
Bernard Xiong 072899e137
Merge pull request #4636 from chunyexixiaoyu/dev
dlmodule can support riscv architecture
2021-04-29 14:36:45 +08:00
Meco Jianting Man 1627597fcc
remove _TIMESPEC_DEFINED 2021-04-29 04:42:11 +08:00
Meco Jianting Man 82f2d8e53d
time.c 删除函数名与括号之间的空格 2021-04-29 00:21:10 +08:00
Meco Man 850e1aeb52 [libc][time] 细微调整time.c 2021-04-28 13:03:43 +08:00
chunyexixiaoyu 2afca00787 [ADD]riscv.c dlmodule can support riscv architecture
[CHG]dlelf.c support distinguishing 32-bit ELF format and 64-bit ELF format
2021-04-27 21:24:42 +08:00
Aubr.Cool e72008b614 update serial drv 2021-04-27 13:53:14 +08:00
Meco Man cb7fa8fcea implement pid_t gettid(void) 2021-04-26 14:34:26 +08:00
Meco Man 19347ed454 [libc][unistd] 完善isatty() 2021-04-26 14:31:31 +08:00
Bernard Xiong 428946c6ae
Merge pull request #4626 from mysterywolf/libc
重新整理common文件夹
2021-04-26 13:50:43 +08:00
Meco Man ae66d82624 update sconscript 2021-04-25 21:32:08 +08:00
Meco Man f9ba41f4c2 更改libc目录为common 以及 none-gcc 2021-04-25 21:10:31 +08:00
Bernard Xiong 75e13c6866
Merge pull request #4631 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
2021-04-25 20:06:24 +08:00
Bernard Xiong e3c19a8463
Merge pull request #4601 from armink/fix_ulog
[ulog] Fix thread info show when kernel not startup.
2021-04-22 13:44:40 +08:00
Bernard Xiong ed84d02eb3
Merge pull request #4618 from mysterywolf/key
[stm32 pandora] implement drv_key and modify drv_sdcard
2021-04-22 11:39:15 +08:00
rtthread-bot 8278898783 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-04-21 16:41:19 +00:00
guozhanxin 48bf53b6e0 【完善】uac class, 去除 GPL 代码 2021-04-21 16:39:14 +08:00
Meco Man c871726e89 update readme 2021-04-21 02:16:29 +08:00
Meco Man 40c09fc1e0 重新分类为common文件夹下属all文件夹和excgcc文件夹 2021-04-21 00:56:36 +08:00
RiceChen 0b9e01cced add I2C bus control api 2021-04-20 00:26:28 +08:00
Bernard Xiong 18ccf1d182
Merge pull request #4523 from xiangxistu/master
[fix] the overflow problem of lwip rx thread mailbox.
2021-04-19 13:35:22 +08:00
Bernard Xiong 3fa35a398b
Update ulog.c
Use `rt_thread_self()` to determine whether the scheduler is started or not.
2021-04-19 06:50:58 +08:00
Bernard Xiong 65bc0faa76
Merge pull request #4609 from mysterywolf/ym
[ymodem] Check the file path's legitimacy of 'sy' command
2021-04-19 06:48:00 +08:00
Bernard Xiong 1916135b89
Merge pull request #4608 from majianjia/master
Add more trys when switching MMC card data width
2021-04-19 00:29:09 +08:00
Meco Man 926cd86589 remove dlib and armlibc sys folder 2021-04-18 01:36:35 +08:00
Meco Man 6026c68d37 加入<sys/types.h>声明 2021-04-18 01:00:37 +08:00
Meco Man bc25c8a6e8 update sconscript 2021-04-18 00:55:32 +08:00
Meco Man 9d401ea8b0 重新整理libc重复共用文件,创建common_for_all 和 common_for_keiliar 2021-04-18 00:51:07 +08:00
Meco Man 8ca492e996 format pin.c 2021-04-17 18:01:20 +08:00
Meco Man 8956b2ea46 [stm32 pandora] implement drv_key and modify drv_sdcard 2021-04-17 16:28:09 +08:00
armink fc97cd23d8 [libc/time] Revert the time.h 2021-04-16 09:21:01 +08:00
Meco Man 46d51a99f1 优化get_timeval set_timeval 条件编译代码结构 2021-04-15 16:34:09 +08:00
Meco Man b74022e2c4 mktime support fixed timezone 2021-04-15 14:31:23 +08:00
armink 2ea39b4f05 [ulog] Using gettimeofday for timestamp get. 2021-04-15 14:15:39 +08:00
armink 6eb6752398 [libc/time] Fix MDK build error when using gmtime_r. 2021-04-15 14:12:02 +08:00
armink 3ae6ca1fb0 [ulog] Fix thread info show when kernel not startup. 2021-04-15 14:10:27 +08:00
Meco Man 8e2a456d7a implement set_timeval 2021-04-15 14:01:55 +08:00
liuxianliang 962a97b683 [restore] Restore format 2021-04-15 12:50:54 +08:00
liuxianliang ad9c4ea15b [restore] Restore format 2021-04-15 12:43:56 +08:00
Meco Man 4accfc410c 修改get_timeval的错误返回形式 2021-04-15 00:57:01 +08:00
armink 76be91c7de [libc/time] Add microseconds time get feature in gettimeofday. 2021-04-14 20:10:47 +08:00
Meco Man a6ac475df3 [ymodem] Check the file path's legitimacy of 'sy' command 2021-04-14 01:34:28 +08:00
Jianjia Ma 398718f0f9
Update mmc.c 2021-04-13 18:27:53 +01:00
Jianjia Ma 4e74279d27
Add more trys when switching data width
Try a few times before switching to other data widths. 
The original strategy (simply wait for 20ms ) failed on STM32H743 with an MTFC4GACAJCN-4M (4GB EMMC) when switching data width. 
(unless the debugging info is enabled, which add more delays)
With this EMMC, the fixed delay was set to 50ms for it to be able to work. 

Instead of a fixed delay, I think we better change to trying a few more times with smaller delays.
2021-04-13 18:04:59 +01:00
liuxianliang 865e34650c [add] the function of set [internet up] status, activate the callback. 2021-04-12 18:11:37 +08:00
liuxianliang 97432efadf Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one 2021-04-12 11:20:11 +08:00
Meco Man b4040df9dc [libc][time][bug] LOG_W will cause a recursive printing if ulog timestamp function is turned on 2021-04-11 13:31:11 +08:00
liuxianliang afe6dd9fe5 Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one 2021-04-10 18:03:18 +08:00
StackRyan 791ecc093f [fix] fix measurement unit of "percentage" to "permillage" for accuracy. 2021-04-07 16:59:27 +08:00
liuxianliang 3db7a98a18 [update] change the file encoding to UTF-8. 2021-04-06 11:41:14 +08:00
liuxianliang 2b549d93c8 [fix] change from enter critical area into disable interrupt. 2021-04-06 10:46:31 +08:00
liuxianliang 233e1cd8bc Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one 2021-04-06 10:42:58 +08:00
StackRyan e6f9ecfe26 [add] add spo2 sensor support in drivers/include/drivers/sensor.h and drivers/sensors/sensor.c
Signed-off-by: yuanjie <yuanjie@rt-thread.com>
2021-04-02 21:43:58 +08:00
Bernard Xiong 199f73c72d
Merge pull request #4547 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
2021-04-02 18:37:40 +08:00
Meco Man 75ae0a544b NULL -> RT_NULL 2021-04-01 23:04:53 +08:00
Bernard Xiong 50700c8d9b
Merge pull request #4480 from iysheng/serial
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close seria…
2021-03-31 17:51:58 +08:00
liuxianliang 4431c4796f [fix] remove the possible critical zone risk 2021-03-31 14:59:12 +08:00
Bernard Xiong 6bb07da6e8
Merge pull request #4439 from OpenNuvoton/sfud_dualio_issue
[sfud] Correct dual_io dummy cycle setting to 4.
2021-03-31 13:53:02 +08:00
liuxianliang 154d73a4e7 [fix] iperf speed test have been stable. 2021-03-31 13:37:19 +08:00
jeshrz 7c999e1950 enhance robustness for pthread 2021-03-31 09:22:47 +08:00
liuxianliang 6d89a9f120 Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one 2021-03-30 10:25:00 +08:00
rtthread-bot 11dd63e9e9 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-03-29 06:39:42 +00:00
Bernard Xiong fefeff8de1
Merge pull request #4535 from mysterywolf/time
[libc][time] add debug tag
2021-03-28 17:50:43 +08:00
Bernard Xiong 7d1a7e3f73
Merge pull request #4513 from yangjie11/comp-license
[components]update GPL license to Apache-2.0
2021-03-28 16:53:26 +08:00
Meco Man a584b8ba6b [libc][time] add debug tag 2021-03-28 10:33:13 +08:00
Bernard Xiong 9cf0720b68
Merge pull request #4531 from whj4674672/pipe
pipe name depend on RT_NAME_MAX
2021-03-27 14:51:15 +08:00