summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/qemu-vexpress-a9/.config4
-rw-r--r--bsp/qemu-vexpress-a9/rtconfig.h3
-rw-r--r--bsp/qemu-virt64-aarch64/applications/console.c25
-rw-r--r--bsp/qemu-virt64-aarch64/applications/main.c1
4 files changed, 4 insertions, 29 deletions
diff --git a/bsp/qemu-vexpress-a9/.config b/bsp/qemu-vexpress-a9/.config
index 9c2d7d8d95..d7e75a08e0 100644
--- a/bsp/qemu-vexpress-a9/.config
+++ b/bsp/qemu-vexpress-a9/.config
@@ -81,7 +81,7 @@ CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=256
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
CONFIG_RT_VER_NUM=0x50100
-# CONFIG_RT_USING_STDC_ATOMIC is not set
+CONFIG_RT_USING_STDC_ATOMIC=y
CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
CONFIG_RT_USING_CACHE=y
CONFIG_RT_USING_HW_ATOMIC=y
@@ -203,7 +203,7 @@ CONFIG_RT_USING_SOFT_RTC=y
CONFIG_RT_USING_SDIO=y
CONFIG_RT_SDIO_STACK_SIZE=4096
CONFIG_RT_SDIO_THREAD_PRIORITY=15
-CONFIG_RT_MMCSD_STACK_SIZE=4096
+CONFIG_RT_MMCSD_STACK_SIZE=16384
CONFIG_RT_MMCSD_THREAD_PREORITY=22
CONFIG_RT_MMCSD_MAX_PARTITION=16
# CONFIG_RT_SDIO_DEBUG is not set
diff --git a/bsp/qemu-vexpress-a9/rtconfig.h b/bsp/qemu-vexpress-a9/rtconfig.h
index d0b3ce7d14..7ba40f4429 100644
--- a/bsp/qemu-vexpress-a9/rtconfig.h
+++ b/bsp/qemu-vexpress-a9/rtconfig.h
@@ -54,6 +54,7 @@
#define RT_CONSOLEBUF_SIZE 256
#define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_VER_NUM 0x50100
+#define RT_USING_STDC_ATOMIC
#define RT_BACKTRACE_LEVEL_MAX_NR 32
#define RT_USING_CACHE
#define RT_USING_HW_ATOMIC
@@ -138,7 +139,7 @@
#define RT_USING_SDIO
#define RT_SDIO_STACK_SIZE 4096
#define RT_SDIO_THREAD_PRIORITY 15
-#define RT_MMCSD_STACK_SIZE 4096
+#define RT_MMCSD_STACK_SIZE 16384
#define RT_MMCSD_THREAD_PREORITY 22
#define RT_MMCSD_MAX_PARTITION 16
#define RT_USING_SPI
diff --git a/bsp/qemu-virt64-aarch64/applications/console.c b/bsp/qemu-virt64-aarch64/applications/console.c
index f560206a3f..b69b9b3b97 100644
--- a/bsp/qemu-virt64-aarch64/applications/console.c
+++ b/bsp/qemu-virt64-aarch64/applications/console.c
@@ -10,10 +10,6 @@
#include <rtthread.h>
-#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_SMART)
-#include <console.h>
-#endif
-
#include <virtio_console.h>
static int console_init()
@@ -36,8 +32,6 @@ static int console_init()
}
INIT_ENV_EXPORT(console_init);
-#ifdef FINSH_USING_MSH
-
static int console(int argc, char **argv)
{
rt_err_t result = RT_EOK;
@@ -48,23 +42,6 @@ static int console(int argc, char **argv)
{
rt_kprintf("console change to %s\n", argv[2]);
rt_console_set_device(argv[2]);
-
- #ifdef RT_USING_POSIX_DEVIO
- {
- rt_device_t dev = rt_device_find(argv[2]);
-
- if (dev != RT_NULL)
- {
- #ifdef RT_USING_SMART
- console_set_iodev(dev);
- #else
- rt_kprintf("TODO not supported\n");
- #endif
- }
- }
- #else
- finsh_set_device(argv[2]);
- #endif /* RT_USING_POSIX_DEVIO */
}
else
{
@@ -81,5 +58,3 @@ static int console(int argc, char **argv)
return result;
}
MSH_CMD_EXPORT(console, set console name);
-
-#endif /* FINSH_USING_MSH */
diff --git a/bsp/qemu-virt64-aarch64/applications/main.c b/bsp/qemu-virt64-aarch64/applications/main.c
index 63833efc20..4447a4f47d 100644
--- a/bsp/qemu-virt64-aarch64/applications/main.c
+++ b/bsp/qemu-virt64-aarch64/applications/main.c
@@ -8,7 +8,6 @@
* 2020/10/7 bernard the first version
*/
-#include <stdio.h>
#include <rtthread.h>
int main(void)