Skip to content

Commit 17d22ad

Browse files
polarvidxqyjlj
authored andcommitted
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
1 parent da37ea8 commit 17d22ad

File tree

131 files changed

+14805
-6329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+14805
-6329
lines changed

bsp/qemu-vexpress-a9/.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CONFIG_RT_USING_CONSOLE=y
8181
CONFIG_RT_CONSOLEBUF_SIZE=256
8282
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
8383
CONFIG_RT_VER_NUM=0x50100
84-
# CONFIG_RT_USING_STDC_ATOMIC is not set
84+
CONFIG_RT_USING_STDC_ATOMIC=y
8585
CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
8686
CONFIG_RT_USING_CACHE=y
8787
CONFIG_RT_USING_HW_ATOMIC=y
@@ -203,7 +203,7 @@ CONFIG_RT_USING_SOFT_RTC=y
203203
CONFIG_RT_USING_SDIO=y
204204
CONFIG_RT_SDIO_STACK_SIZE=4096
205205
CONFIG_RT_SDIO_THREAD_PRIORITY=15
206-
CONFIG_RT_MMCSD_STACK_SIZE=4096
206+
CONFIG_RT_MMCSD_STACK_SIZE=16384
207207
CONFIG_RT_MMCSD_THREAD_PREORITY=22
208208
CONFIG_RT_MMCSD_MAX_PARTITION=16
209209
# CONFIG_RT_SDIO_DEBUG is not set

bsp/qemu-vexpress-a9/rtconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#define RT_CONSOLEBUF_SIZE 256
5555
#define RT_CONSOLE_DEVICE_NAME "uart0"
5656
#define RT_VER_NUM 0x50100
57+
#define RT_USING_STDC_ATOMIC
5758
#define RT_BACKTRACE_LEVEL_MAX_NR 32
5859
#define RT_USING_CACHE
5960
#define RT_USING_HW_ATOMIC
@@ -138,7 +139,7 @@
138139
#define RT_USING_SDIO
139140
#define RT_SDIO_STACK_SIZE 4096
140141
#define RT_SDIO_THREAD_PRIORITY 15
141-
#define RT_MMCSD_STACK_SIZE 4096
142+
#define RT_MMCSD_STACK_SIZE 16384
142143
#define RT_MMCSD_THREAD_PREORITY 22
143144
#define RT_MMCSD_MAX_PARTITION 16
144145
#define RT_USING_SPI

bsp/qemu-virt64-aarch64/applications/console.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
#include <rtthread.h>
1212

13-
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_SMART)
14-
#include <console.h>
15-
#endif
16-
1713
#include <virtio_console.h>
1814

1915
static int console_init()
@@ -36,8 +32,6 @@ static int console_init()
3632
}
3733
INIT_ENV_EXPORT(console_init);
3834

39-
#ifdef FINSH_USING_MSH
40-
4135
static int console(int argc, char **argv)
4236
{
4337
rt_err_t result = RT_EOK;
@@ -48,23 +42,6 @@ static int console(int argc, char **argv)
4842
{
4943
rt_kprintf("console change to %s\n", argv[2]);
5044
rt_console_set_device(argv[2]);
51-
52-
#ifdef RT_USING_POSIX_DEVIO
53-
{
54-
rt_device_t dev = rt_device_find(argv[2]);
55-
56-
if (dev != RT_NULL)
57-
{
58-
#ifdef RT_USING_SMART
59-
console_set_iodev(dev);
60-
#else
61-
rt_kprintf("TODO not supported\n");
62-
#endif
63-
}
64-
}
65-
#else
66-
finsh_set_device(argv[2]);
67-
#endif /* RT_USING_POSIX_DEVIO */
6845
}
6946
else
7047
{
@@ -81,5 +58,3 @@ static int console(int argc, char **argv)
8158
return result;
8259
}
8360
MSH_CMD_EXPORT(console, set console name);
84-
85-
#endif /* FINSH_USING_MSH */

bsp/qemu-virt64-aarch64/applications/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* 2020/10/7 bernard the first version
99
*/
1010

11-
#include <stdio.h>
1211
#include <rtthread.h>
1312

1413
int main(void)

components/dfs/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ endif
4545

4646
config RT_USING_DFS_V2
4747
bool "DFS v2.0"
48+
select RT_USING_DEVICE_OPS
4849
endchoice
4950

5051
if RT_USING_DFS_V1
@@ -170,6 +171,13 @@ endif
170171
depends on RT_USING_DFS_ROMFS
171172
default n
172173

174+
if RT_USING_SMART
175+
config RT_USING_DFS_PTYFS
176+
bool "Using Pseudo-Teletype Filesystem (UNIX98 PTY)"
177+
depends on RT_USING_DFS_DEVFS
178+
default y
179+
endif
180+
173181
config RT_USING_DFS_CROMFS
174182
bool "Enable ReadOnly compressed file system on flash"
175183
default n

0 commit comments

Comments
 (0)