mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
init: move USERMAIN_XX out of INIT_ENTRYPOINT
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -14,11 +14,11 @@ increasing difficulty:
|
||||
#. You replace the sample code at ``apps/examples/nsh/nsh_main.c`` with
|
||||
whatever start-up logic that you want. NSH is a library at
|
||||
``apps/nshlib``. ``apps.examples/nsh`` is just a tiny, example
|
||||
start-up function (``CONFIG_USER_ENTRYPOINT``\ ()) that that runs
|
||||
start-up function (``CONFIG_INIT_ENTRYPOINT``\ ()) that runs
|
||||
immediately and illustrates how to start NSH If you want something
|
||||
else to run immediately then you can write your write your own custom
|
||||
``CONFIG_USER_ENTRYPOINT``\ () function and then start other tasks
|
||||
from your custom ``CONFIG_USER_ENTRYPOINT``\ ().
|
||||
``CONFIG_INIT_ENTRYPOINT``\ () function and then start other tasks
|
||||
from your custom ``CONFIG_INIT_ENTRYPOINT``\ ().
|
||||
|
||||
#. NSH also supports a start-up script that executed when NSH first
|
||||
runs. This mechanism has the advantage that the start-up script can
|
||||
|
||||
@@ -60,7 +60,7 @@ with NuttX. The list is the following:
|
||||
``CONFIG_LIBC_EXECFUNCS=y`` ``CONFIG_SYMTAB_ORDEREDBYNAME=y``
|
||||
``CONFIG_LIBC_STRERROR=y`` ``CONFIG_SYSTEM_NSH=y``
|
||||
``CONFIG_MAX_TASKS=16`` ``CONFIG_SYSTEM_NSH_STACKSIZE=4096``
|
||||
``CONFIG_NSH_BUILTIN_APPS=y`` ``CONFIG_USER_ENTRYPOINT="nsh_main"``
|
||||
``CONFIG_NSH_BUILTIN_APPS=y`` ``CONFIG_INIT_ENTRYPOINT="nsh_main"``
|
||||
``CONFIG_NSH_FILEIOSIZE=512``
|
||||
==================================== =====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user