Bernard Xiong
cc319ac1aa
Merge pull request #3458 from shawn1221/mmc-upstream-20200316
...
component: sdio: fix potential ricky clock setting
2020-03-16 21:20:09 +08:00
Bernard Xiong
822d8f4002
Merge pull request #3456 from zhao0116/spi
...
spi: support slave mode and master mode runtime config
2020-03-16 15:34:33 +08:00
Shawn Lin
4c7106fa9d
component: sdio: fix potential ricky clock setting
...
Currently RTT mmc stack only support Highspeed mode or
blow, which means the max speed should be 52MHz according
to JEDEC spec. Two problems show here:
(1) max_data_rate = (unsigned int)-1. The value of unsigned int
depends on compilers/arch. Moreover, it makes no sense to assume
cpu addressing width with IP clock rate limit.
(1)hs_max_data_rate was set to 200MHz.
So what should BSP drivers do if 52MHz < max_data_rate < 200MHz?
Either it blindly sets a spec-violated clock rate to drive a Highspeed
card, or just adjust the clock rate internally. Both cases are
really bad for practice.
If the card claims to support Highspeed, we set the clock to not
to exceed 52MHz. Otherwise it should be set according to
card->max_data_rate parsed by ext_csd. This patch fixes it as-is,
and also simplify the code a lot.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-16 14:45:41 +08:00
luhuadong
7c4e70b3b3
[Sensor] Add user-commands range limitation
2020-03-16 11:03:32 +08:00
Cliff Chen
1c68bd9d3c
Support msc mode automatic switching
...
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-03-16 10:50:34 +08:00
Yifeng Zhao
d906bf5b18
spi: support slave mode and master mode runtime config
...
support slave mode and master mode runtime config.
Change-Id: Iabadbade8997bb8e3adef8ce95f6c45f6bb35329
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2020-03-16 10:20:03 +08:00
Bernard Xiong
d33d9dd9a6
Merge pull request #3437 from Chinese66/patch-1
...
Update ry_sy.c
2020-03-13 18:09:43 +08:00
Shawn Lin
11277014a3
[Components] sdio: try bus width depends on host's capability
...
It makes no sense to try bus width if not supported by drivers or BSP,
since we know it must be failed. It saves a lot for booting in time
critical environment.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-12 09:00:41 +08:00
Shawn Lin
a33bc0f321
[component] sdio: Fix mmc mount function if the whole device is a partition
...
If the whole sd card was formatted as a partition, current
code break out the loop mistakenly, so it skips dfs_mount_device
later. Simply remove the broken 'break' to solve this problem.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-12 09:00:33 +08:00
Chinese66
2822ec377d
Update ry_sy.c
...
修改了读取不到文件大小,导致的文件传输的问题,问题说明在
https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=423781
2020-03-11 11:56:35 +08:00
David Lin
eb5467bece
Fixed wrong output information in core.c
...
rt_kprintf("alloc memery failed\n"); -> rt_kprintf("alloc memory failed\n");
2020-03-08 00:20:31 +08:00
David Lin
053ffb0527
Fixed typos in Kconfig
...
mesage -> message
memmory -> memory
2020-03-05 09:20:05 +08:00
David Lin
39538e036b
Fixed wrong output information
...
to ->too
2020-03-04 23:13:45 +08:00
David Lin
f9ab9d5868
Fixed wrong output information
...
to -> too
2020-03-04 23:04:52 +08:00
Bernard Xiong
b3d196392c
Merge pull request #3413 from luhuadong/patch1
...
[Sensor] Add vendor info and sensor types for cmd
2020-03-04 11:44:25 +08:00
Bernard Xiong
87a8585e36
Merge pull request #3423 from djndl1/cppthread
...
make clock_time.h available to C++
2020-03-03 23:59:14 +08:00
Bernard Xiong
d81ab720d3
Merge pull request #3420 from Lawlieta/chenyong
...
[driver][wlan] add raw frame send interface and Management frame filter interface
2020-03-03 16:41:34 +08:00
djndl1
48b9ab570f
make clock_time.h available to C++
2020-03-03 01:34:18 +08:00
chenyong
986b64cbe0
[driver][wlan] add raw frame send interface and Management frame filter interface
...
Signed-off-by: chenyong <1521761801@qq.com>
2020-02-29 17:12:48 +08:00
David Lin
fac95192ea
[finsh]Minor optimization in finsh_compiler.c
...
The code just clean the first member of array 'finsh_vm_stack', but it works well in the past years,
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack[0]));
Is it better to re-code as below, it will be more readable and robust:
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack));
2020-02-29 16:53:44 +08:00
bigmagic
e09c99fcfb
fix raspi3-64 sdio driver
2020-02-28 14:56:56 +08:00
luhuadong
ac6f133f86
[Sensor] fixed %% print
2020-02-26 17:31:26 +08:00
luhuadong
3994ebbfd4
[Sensor] Add vendor info and sensor types for cmd
2020-02-26 17:20:41 +08:00
A.orz
a646b9275d
Update sd.c
...
clean #if 0 code
2020-02-23 09:20:09 +08:00
luhuadong
815d231f4a
add change log
2020-02-22 22:43:14 +08:00
luhuadong
82f981d34c
[Sensor] Support custom commands for rt_sensor_control
2020-02-22 21:00:35 +08:00
Bernard Xiong
87cf14d95f
Merge pull request #3389 from DavidLin1577/patch-3
...
Fixed typo: 'lenght' and 'sfotware' in Kconfig
2020-02-22 20:03:03 +08:00
Bernard Xiong
1c3a482ca4
Merge pull request #3396 from DavidLin1577/patch-10
...
Fixed typo 'WirtePageWithLayout' in uffs
2020-02-22 13:25:04 +08:00
David Lin
ec20c2c7ff
Fixed typo 'WirtePageWithLayout' in uffs
...
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:37:05 +08:00
David Lin
3790384734
Fixed typo 'WirtePageWithLayout' in uffs
...
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:34:21 +08:00
David Lin
8d497e945a
Fixed typo 'WirtePageWithLayout' in uffs
...
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:30:35 +08:00
luhuadong
26fa5e5fa2
[Sensor] Add the prefix corresponding to sensor types
2020-02-20 16:09:52 +08:00
luhuadong
7c2d7c7eb7
[Sensor] ASAIR is the trademark of Aosong
2020-02-20 15:39:39 +08:00
David Lin
e16591ced1
Fixed typo: 'lenght' and 'sfotware' in Kconfig
...
lenght -> length
sfotware -> software
2020-02-19 22:35:43 +08:00
luhuadong
c734a7b3fa
[Sensor] Dust and eCO2 data should be defined unsigned
2020-02-17 23:26:54 +08:00
luhuadong
da8e829fa8
[Sensor] Add some class and vendor information of sensor
2020-02-17 23:17:54 +08:00
Bernard Xiong
c3410c7884
Merge pull request #3380 from DavidLin1577/patch-8
...
[net] Fixed macro error in lc-switch.h
2020-02-17 12:17:23 +08:00
Bernard Xiong
72a2c8361c
Merge pull request #3377 from DavidLin1577/patch-5
...
Fixed typo: 'wirte' in uffs_nandif.c
2020-02-17 12:12:51 +08:00
David Lin
ca1e9137d6
[net] Fixed macro error in lc-switch.h
...
Fixed macro error: __LC_SWTICH_H__ -> __LC_SWITCH_H__
2020-02-16 20:54:45 +08:00
David Lin
8e19bec11b
Fixed typo: 'wirte' in uffs_nandif.c
...
Note that the word 'wirte' is wrong,
so that 'wirte' should been replaced with 'write'.
2020-02-16 20:08:36 +08:00
David Lin
812d3d2833
Fixed typo: 'lenght'
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 17:07:34 +08:00
Bernard Xiong
dd5178efdf
Merge pull request #3352 from z14git/serial_bug_fix
...
修复因串口接收缓冲区满且没有开启ULOG_USING_ISR_LOG而造成的死机问题
2020-02-11 11:56:01 +08:00
luhuadong
3d5357bc75
[AT] Fix typos in Kconfig
2020-02-10 03:35:04 +08:00
z14git
50c2af5eea
[serial.c] 修复在没有开启ulog时,警告日志不会输出的问题
2020-01-21 16:38:07 +08:00
z14git
1499844699
修复因串口接收缓冲区满且没有开启ULOG_USING_ISR_LOG而造成的死机问题
2020-01-18 10:12:29 +08:00
Ihavedone
0fdf20cf58
添加虚拟串口接收缓存的 ENV 配置项,可手动配置接收缓存大小,默认为128字节
2020-01-17 15:42:56 +08:00
Bernard Xiong
e3e0aa7f4d
Merge pull request #3317 from a1012112796/writing/log
...
[ULOG] fix row size bug for backend which don't suport color
2020-01-07 16:46:14 +08:00
a1012112796
73cae9564b
[ULOG] fix raw size bug for backend which don't suport color
2020-01-07 11:22:26 +08:00
Bernard Xiong
f5ae4d2fc3
Merge pull request #3310 from tonyzheng-rockchip/fix-dlmodule
...
Fix dlmodule
2020-01-07 08:10:15 +08:00
tonyzheng-rockchip
1f5118f7dd
Add priority & stack_size param parsing for dlmodule
2020-01-03 14:31:38 +08:00
tonyzheng-rockchip
04c20bc8ed
Revert "Add priority & stack_size parameters for dlmodule custom"
...
This reverts commit f38b5a9f9f
.
2020-01-03 09:18:51 +08:00
Bernard Xiong
24f961fa70
Merge pull request #3303 from junlon2006/hotfix/compile-warning
...
🐛 fix compile warning, undefine var
2020-01-02 11:50:57 +08:00
tonyzheng-rockchip
f38b5a9f9f
Add priority & stack_size parameters for dlmodule custom
2020-01-02 08:54:48 +08:00
Bernard Xiong
848c3ff02b
Merge pull request #3298 from xiangxistu/master
...
[net][lwip] fix assert in the sys_arch_mbox_fetch function when close socket
2020-01-01 11:55:55 +08:00
shangjinlong
b87f493f2b
🐛 fix compile warning, undefine var
2019-12-31 16:16:15 +08:00
liuxinaliang
83b290c289
[net][lwip] fix lwIP 2.1.0 personalized sign bug
2019-12-29 15:35:22 +08:00
liuxinaliang
a0e62f665f
[net][lwip] fix assert in the sys_arch_mbox_fetch function when close socket
2019-12-29 15:32:27 +08:00
zhaoshaowei
3ad6b30e18
[componects] 修复不能发现禁止写spi flash失败的情形
...
`(register_status & SFUD_STATUS_REGISTER_WEL) == 1` 这个表达式始终为假
SFUD_STATUS_REGISTER_WEL = (1 << 1)
2019-12-27 16:52:52 +08:00
Bernard Xiong
c2322353aa
Merge pull request #3294 from tonyzheng-rockchip/fix-dlmodule
...
Fix dlmodule must depends on file system issue
2019-12-27 15:42:28 +08:00
tonyzheng-rockchip
d910372010
Fix dlmodule must depends on file system issue
...
解决dlmodule只能依赖于文件系统的问题;
增加dlmodule扩展接口,以适应更多需求;
2019-12-27 14:27:31 +08:00
ZYH
a4dba7b583
[Components][USB][ECM] fix build error
2019-12-25 13:15:10 +08:00
任光伟
9893f64610
ulogbuffer增加1,为\0预留空间
...
Signed-off-by: RGW <rgw5267@gmail.com>
2019-12-23 10:49:01 +08:00
Bernard Xiong
c2f23fd1e8
Merge pull request #3278 from xiangxistu/master
...
[net][lwip] add personalized RT-Thread sign into lwip protocol stack
2019-12-22 03:33:51 +08:00
liuxianliang
f9ef8c7ed9
[net][lwip] modified hostname, support lwIP 1.4.1 ,lwIP 2.0.2 and lwIP 2.1.2
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2019-12-21 17:43:32 +08:00
Bernard Xiong
9111aca176
Merge pull request #3279 from armink/fix_rbb
...
[DeviceDriver][IPC] Fix rbb free bug in rt_rbb_destroy.
2019-12-19 14:59:29 +08:00
Bernard Xiong
01fa184f9a
Merge pull request #3275 from BernardXiong/delayUtil
...
Delay until
2019-12-19 11:04:40 +08:00
armink
6228ff5e98
[DeviceDriver][IPC] Fix rbb free bug in rt_rbb_destroy.
2019-12-19 10:39:55 +08:00
liuxianliang
a9cad2b95b
[net][lwip] rename hostname, change "RT-Thread_xx" into "RTTHREAD_xx"
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2019-12-19 10:36:40 +08:00
Bernard Xiong
7a00b42e97
Update pipe.c
2019-12-18 23:19:54 +08:00
Bernard Xiong
b5e4aa58e0
[Kernel] Fix the signal compiling issue when using minilibc
2019-12-18 23:06:36 +08:00
Bernard Xiong
055061a639
[DeviceDrivers] Fix pipe memory issue.
2019-12-18 21:38:05 +08:00
Bernard Xiong
78d42efd22
[DFS] cleanup the log in dfs.
2019-12-18 21:37:42 +08:00
Bernard Xiong
a87c2ef970
Merge pull request #3234 from fmkong/spi_flash_sfud
...
[drivers/spi_flash_sfud] accept the error from spi read or write in spi_write_read function.
2019-12-18 20:03:28 +08:00
liuxianliang
3557d8f8a1
[net][lwip] add personalized RT-Thread sign into lwip protocol stack as hostname.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2019-12-18 14:20:55 +08:00
Fanming
7e9d54d87a
[drivers/spi_flash_sfud] accept the error from spi read or write in spi_write_read function.
2019-12-17 17:46:43 +08:00
Bernard Xiong
457759ded7
[Util] fix the dependence of file feature in ymodem
2019-12-17 13:38:49 +08:00
Steven Liu
3c5f46468c
[components]: utilities: ymodem: Add ry_sy function.
...
Use "ry" to receive files and use "sy file_path" to
send files. Default console uart and you can choose
any other uart if you want.
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
2019-12-13 11:49:53 +08:00
Bernard Xiong
ea507e2e81
Merge pull request #3232 from balanceTWK/sfud_temp
...
[components][sfud] update sfud options.
2019-12-11 08:30:29 +08:00
Jingsai Lu
cd1ff2ab0d
fix spelling mistake in the comments of shell.c
2019-12-07 13:47:03 +08:00
tangweikang
15b10bd5e2
[components][sfud] update sfud options.
2019-12-03 16:45:46 +08:00
HubretXie
3c2bfa2349
【修复bug】修复sal判断internet连接的隐藏bug
...
1、当前判断网卡是否连接Internet是通过连接rtt-thread的服务器来判断的,
2、这个月开始好像服务器挂了,不响应请求
3、这里超时用的2000秒,导致sys workqueue被卡死在这里了
2019-11-26 09:38:16 +08:00
a1012112796
ab981a32b5
[Device/I2C] Chang debug message print way to ulog
2019-11-26 07:41:43 +08:00
Bernard Xiong
55c3182b78
Merge pull request #3193 from wangk-ge/master
...
修改内存泄漏问题
2019-11-21 22:04:42 +08:00
Bernard Xiong
54b72927d1
Merge pull request #3214 from chengxiaohu/master
...
添加 W25Q64DW SPI Flash 到支持列表
2019-11-21 22:04:19 +08:00
Bernard Xiong
92ab9d28b6
Merge pull request #3206 from hichard/master
...
1.修复sd卡热插拔内存泄露的bug
2019-11-21 06:34:01 +08:00
Bernard Xiong
5a40f932c9
Merge pull request #3207 from loogg/mlw
...
去除sal shut_down后释放socket导致close失败的问题
2019-11-21 06:33:20 +08:00
chengxiaohu
6b8a3469f8
Merge branch 'master' of https://github.com/chengxiaohu/rt-thread
2019-11-20 23:38:35 +08:00
chengxiaohu
2a512f3df0
添加 W25Q64DW SPI Flash 到支持列表。实际应用中发现该芯片不支持sfdp。
2019-11-20 23:33:10 +08:00
malongwei
c531fdc7ae
去除sal shut_down后释放socket导致close失败的问题
2019-11-16 12:33:09 +08:00
hichard
ec3b4349d3
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into renhaibo-branch
2019-11-16 11:20:13 +08:00
hichard
aafed7b434
1.修复sd卡热插拔内存泄露的bug
...
2.dfs增加函数,配合实现sd卡热插拔自动挂载卸载文件系统
2019-11-16 11:16:48 +08:00
Bernard Xiong
97b7661f6e
Merge pull request #3202 from armink/fix_rtc
...
[components] remove libc dependency in ulog and RTC driver.
2019-11-16 10:30:23 +08:00
ZYH
d3ee03f9c6
[RNDIS]fix speed on HS
2019-11-15 15:05:21 +08:00
armink
e59339e4b8
[components] remove libc dependency in ulog and RTC driver.
2019-11-14 18:09:55 +08:00
Steven Liu
12eacb8df6
components: drivers: misc: pwm: Missing "pwm1" here.
2019-11-11 17:10:25 +08:00
wangk-ge
649f75f861
修改内存泄漏问题
2019-11-11 16:46:43 +08:00
chenyong
df07cccccc
[components][finsh] fix compile error when the symbol table feature closed
2019-11-11 10:36:49 +08:00
Bernard Xiong
3777bec075
Merge pull request #3140 from tanglj86/master
...
fix rt_thread_mdelay parameter error bug;
2019-11-11 08:19:14 +08:00
Ernest
f82d4f1f6f
[DeviceDrivers] add warning about overflow by serial receiver
2019-11-01 10:38:07 +08:00
tanglj86
5e16a09cfb
fix rt_thread_mdelay parameter error bug;
2019-10-19 15:00:15 +08:00