Commit Graph

2262 Commits

Author SHA1 Message Date
MurphyZhao 655c4ad36b [component][utest] 增加 utest 日志输出级别配置,提供 ASSERT 和 ALL 两个级别,便于测试用例控制 log 输出
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-25 17:25:29 +08:00
Bernard Xiong 71da3392fc
Merge pull request #2263 from RT-Thread/fix_fdopen
[DFS] Remove opened file check
2019-01-25 03:16:21 +08:00
Bernard Xiong 3b4a9f51c7 [DFS] Remove opened file check
Remove opened file check in dfs_file_open function. It will be replaced with POSIX flock/fcntl.
2019-01-24 20:55:27 +08:00
Bernard Xiong a68bdc94e4
Merge pull request #2250 from gztss/master
实现_sys_flen()函数并解决了unistd.h和dirent.h不能同时包含的问题。
2019-01-24 09:43:36 +08:00
gztss 11751d60e0 实现_sys_flen()函数 2019-01-24 09:05:41 +08:00
Bernard Xiong 358a3884f6
Merge pull request #2254 from misonyo/dev
[driver/ringbuffer]illegal access to freed memory
2019-01-23 11:11:03 +08:00
MurphyZhao f9e5d87c98 [components][utest] 将 utest_assert.h 加入 utest.h,以后测试用例仅需要包含 utest.h
[components][utest] 增加 buf 类型的字节比较 assert 宏
[components][utest] 修复错误日志打印的输出类型为 ERR 级别

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-22 15:46:12 +08:00
misonyo e02d6e616b [driver/ringbuffer]illegal access to freed memory 2019-01-21 21:59:39 +08:00
Bernard Xiong bef1d55736
Merge pull request #2244 from RT-Thread/fix_libc_posix
Fix libc posix
2019-01-21 19:41:38 +08:00
Bernard Xiong 929e9c8f4b
Merge pull request #2243 from EvalZero/master
[lwIP] the errno definition of rt_libc.h is used by default.
2019-01-21 18:18:06 +08:00
Bernard Xiong 97560dd8e2 [libc] Fix the addr=NULL issue in mmap. 2019-01-21 17:19:07 +08:00
Bernard Xiong 75061a2712 [libc] Fix the result length issue in aio_read_work. 2019-01-21 17:18:48 +08:00
EvalZero b676d7230d [lwIP] the errno definition of rt_libc.h is used by default. 2019-01-21 15:50:25 +08:00
armink 59a4e4b2b7 [DeviceDriver][wlan] Add device ops to wlan. 2019-01-18 20:41:39 +08:00
Bernard Xiong 3b21ead135
Merge pull request #2200 from RT-Thread/thread_stat
[Kernel] Enable RUNNING status in thread.
2019-01-16 17:36:22 +08:00
陈迎春 e45d7da503
Update serial.c
"remove  #ifdef RT_SERIAL_USING_DMA in rt_serial_open, always check device open dma flag"
2019-01-16 13:21:20 +08:00
armink 9e7254ef59 [DeviceDriver][SFUD] Change the rt_sfud_flash_find() function position. 2019-01-15 20:13:49 +08:00
Noe Xu 52729bb62d Fix rtthread CAN driver issue.
Reset rx tx handler when closing CAN device, Or it will not work after
reopening.

Change-Id: I43482c21263a989322f8df2ac9349128f7cb630a
2019-01-13 23:37:15 -08:00
Bernard Xiong d55a9cd62a
Merge pull request #2202 from RT-Thread/fix_lwp
[lwp] Fix compiling warning in lwP.
2019-01-13 21:41:22 +08:00
Bernard Xiong b998c4ed8d
[DFS][romfs] code cleanup 2019-01-13 14:33:24 +08:00
Bernard Xiong 9af2d29351
[DFS][romfs] code cleanup 2019-01-13 14:31:55 +08:00
Bernard Xiong 711c923614 [lwp] Fix compiling warning in lwP. 2019-01-13 14:25:52 +08:00
Bernard Xiong bd7ebbf17b [DFS][romfs] fix the mkrom issue when file/dir size zero 2019-01-13 14:24:00 +08:00
Bernard Xiong c2a85453b3 [finsh] Add RUNNING stat in thread 2019-01-13 14:22:13 +08:00
yangfasheng c16d3de633 update dfs.c dfs_file.c dfs_file.h
Signed-off-by: yangfasheng <yangfasheng@rt-thread.com>
2019-01-09 17:40:32 +08:00
Hao Zhu d3c2cb5845 [components][libc] add extern "C" for header file 2019-01-09 15:13:03 +08:00
MurphyZhao 5d6c7e0df7 [components][dfs] Refix #2100 PR
#2100 PR 增加 `#include <libc.h>` 后,如果定义了 `RT_USING_DFS_DEVFS`,那就必须要开启 LIBC 才可以成功编译,增加了对 RT_USING_LIBC 的依赖。但是,这个修复又是关于开启 POSIX 的时候遇到的问题,因此建议在引入 <libc.h> 的地方,加入对 `RT_USING_POSIX` 的依赖。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-05 14:20:44 +08:00
MurphyZhao 5ea985d0fb [components][utilities/ulog] 修改 ulog_console_backend_init 从 `INIT_COMPONENT_EXPORT` 修改为 `INIT_PREV_EXPORT` 级别的自动初始化,与 ulog_init 同级
目的是为了组件初始化中的其他模块可以使用 ulog 输出日志。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-04 18:59:51 +08:00
朱天龙 (Armink) c7daacc96f
[component][ulog] Fix the ulog_strcpy function. 2019-01-03 15:31:04 +08:00
Bernard Xiong 9556288e54
Merge pull request #2103 from thomasonegd/master
fix socket nullptr bug
2019-01-02 10:47:52 +08:00
Bernard Xiong 56f1a8af4f
Merge pull request #2100 from gbcwbz/vi
Fix stdio fd error when POSIX api is used
2018-12-30 18:31:18 +08:00
Bernard Xiong 38c49099c9 [libc] Fix the printf issue when disable DFS 2018-12-28 21:41:01 +08:00
Bernard Xiong 214652fd7e
Merge pull request #2130 from jesven/fix_list_thread
修正rt_object_get_information参数类型不匹配警告
2018-12-27 19:08:55 +08:00
shaojinchun fdfc7e541a 修正rt_object_get_information参数类型不匹配警告 2018-12-27 17:48:38 +08:00
Bernard Xiong e70cece9b5
Merge pull request #2128 from lymzzyh/master
[components][USB][Device][Core]fix the device_qualifier error respond on fullspeed
2018-12-27 17:39:40 +08:00
Bernard Xiong 137ed381c7
Merge pull request #2123 from jesven/fix_list_thread
修正list_thread关中断时间过长的问题
2018-12-27 17:16:32 +08:00
zyh b18534e1af [components][USB][Device][Core]fix the device_qualifier error respond on fullspeed 2018-12-27 16:48:29 +08:00
shaojinchun ed9a558da9 list_*时,提供对第一层object的原子保护 2018-12-27 16:31:22 +08:00
Bernard Xiong 61b6fca3dd [bsp] Update tm4c19x and fix the mb_recv warning in lwip-1.4.1 2018-12-27 12:04:48 +08:00
Bernard Xiong 96e6deac29 [Kernel] Fix the errno definitions in armcc/iar. 2018-12-27 09:11:07 +08:00
shaojinchun 3f79a78393 修正list_thread关中断时间过长的问题 2018-12-26 11:51:35 +08:00
misonyo 3b4bb18c06 [components/drivers/hwtimer]修复定时器向下计数模式时时间获取错误bug 2018-12-25 09:59:16 +08:00
thomasonegd 71c3c35c3c fix socket nullptr bug 2018-12-24 08:31:54 +08:00
gbcwbz 48848c2917 [libc][armlibc] Fix getchar error after exit vi
- _sys_istty() add stdio as tty
 - without this, after exit vi program getchar will return -1, I don't know why it works
2018-12-23 19:15:20 +08:00
gbcwbz 0924d277f6 [dfs] Fix stdio fd error when POSIX api is used
POSIX api e.g. poll read write
2018-12-23 19:14:14 +08:00
Bernard Xiong 9b9dc591f5 [lwp] Correct the change log. 2018-12-19 20:10:33 +08:00
Bernard Xiong 12b8a0cc38
Merge pull request #2020 from enkiller/dev
[components][drivers][wlan] 更正表意错误的返回值类型
2018-12-18 14:16:05 +08:00
HubretXie 716823bfec
减少sfud对任务栈的占用
用全局空间换栈空间,当多个任务需要使用sfud时,可以节省内存
例如多个任务需要使用文件系统,任务栈可以减少
2018-12-17 18:09:02 +08:00
zhaohengbo afcd8b4521 fix some bug when stack grows upward 2018-12-15 11:20:24 +08:00
Bernard Xiong f12d5bfba0
Merge pull request #2065 from qgyhd1234/hwtimer
完善 hwtimer 测试例程,修改 readme 显示错误
2018-12-14 11:05:58 +08:00