From 9c19db6e140af311c3546cd9263ff70f8b7a6e21 Mon Sep 17 00:00:00 2001 From: dongjiuzhu Date: Thu, 29 Oct 2020 21:31:27 +0800 Subject: [PATCH] rc/dummy: enable dummy driver and add rc defconfig N/A Change-Id: I760593ec578361deffea2db6d7c8a02d47c6f83b Signed-off-by: dongjiuzhu --- boards/sim/sim/sim/configs/rc/defconfig | 49 +++++++++++++++++++++++++ boards/sim/sim/sim/src/sim_appinit.c | 6 +++ 2 files changed, 55 insertions(+) create mode 100644 boards/sim/sim/sim/configs/rc/defconfig diff --git a/boards/sim/sim/sim/configs/rc/defconfig b/boards/sim/sim/sim/configs/rc/defconfig new file mode 100644 index 0000000000..866b2e00ad --- /dev/null +++ b/boards/sim/sim/sim/configs/rc/defconfig @@ -0,0 +1,49 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +CONFIG_ARCH="sim" +CONFIG_ARCH_BOARD="sim" +CONFIG_ARCH_BOARD_SIM=y +CONFIG_ARCH_CHIP="sim" +CONFIG_ARCH_SIM=y +CONFIG_BOARDCTL_APP_SYMTAB=y +CONFIG_BOARDCTL_POWEROFF=y +CONFIG_BOARD_LOOPSPERMSEC=0 +CONFIG_BOOT_RUNFROMEXTSRAM=y +CONFIG_BUILTIN=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DEV_LOOP=y +CONFIG_DEV_ZERO=y +CONFIG_DRIVERS_RC=y +CONFIG_FSUTILS_PASSWD=y +CONFIG_FSUTILS_PASSWD_READONLY=y +CONFIG_FS_BINFS=y +CONFIG_FS_PROCFS=y +CONFIG_IDLETHREAD_STACKSIZE=4096 +CONFIG_LIBC_EXECFUNCS=y +CONFIG_LIBC_FLOATINGPOINT=y +CONFIG_LIB_ENVPATH=y +CONFIG_MAX_TASKS=64 +CONFIG_NFILE_DESCRIPTORS=32 +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILE_APPS=y +CONFIG_NSH_READLINE=y +CONFIG_PATH_INITIAL="/bin" +CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=2048 +CONFIG_RC_DUMMY=y +CONFIG_READLINE_TABCOMPLETION=y +CONFIG_SCHED_HAVE_PARENT=y +CONFIG_SCHED_ONEXIT=y +CONFIG_SCHED_WAITPID=y +CONFIG_SDCLONE_DISABLE=y +CONFIG_START_MONTH=6 +CONFIG_START_YEAR=2008 +CONFIG_SYSTEM_NSH=y +CONFIG_USERMAIN_STACKSIZE=4096 +CONFIG_USER_ENTRYPOINT="nsh_main" diff --git a/boards/sim/sim/sim/src/sim_appinit.c b/boards/sim/sim/sim/src/sim_appinit.c index cc8d312dcc..e930635fbf 100644 --- a/boards/sim/sim/sim/src/sim_appinit.c +++ b/boards/sim/sim/sim/src/sim_appinit.c @@ -40,6 +40,8 @@ #include #include #include +#include +#include #include "sim.h" #include "up_internal.h" @@ -96,6 +98,10 @@ int board_app_initialize(uintptr_t arg) #endif #endif +#ifdef CONFIG_RC_DUMMY + rc_dummy_initialize(0); +#endif + return 0; } #endif /* CONFIG_LIB_BOARDCTL */