diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 2cb4bc9a42..bcf62a5a91 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -3066,7 +3066,7 @@ Builtin Apps:

apps/examples/hello. The main routine for apps/examples/hello can be found in apps/examples/hello/main.c. - When CONFIG_EXAMPLES_HELLO_BUILTIN is defined, this main routine simplifies to: + The main routine is:

- that application will be invoked immediately after system starts instead of the normal, default user_start() entry point. + that application will be invoked immediately after system starts instead of the default CONFIG_USER_ENTRYPOINT() entry point. Note that <application name> must be provided just as it would have been on the NSH command line. For example, hello would result in hello_main() being started at power-up.

@@ -3276,8 +3274,8 @@ CONFIGURED_APPS += examples/hello

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.examplex/nsh is just a tiny, example start-up function (user_start()) that 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 user_start() function and then start other tasks from your custom user_start(). + apps.examplex/nsh is just a tiny, example start-up function (CONFIG_USER_ENTRYPOINT()) that 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().

  • diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index bfde229edc..532da8c16c 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -4085,6 +4085,14 @@ build CONFIG_SCHED_ONEXIT_MAX: By default if CONFIG_SCHED_ONEXIT is selected, only a single on_exit() function is supported. That number can be increased by defined this setting to the number that you require.

  • +
  • + CONFIG_USER_ENTRYPOINT: The name of the entry point for user + applications. + For the example applications this is of the form app_main + where app is the application name. + If not defined, CONFIG_USER_ENTRYPOINT defaults to + user_start. +
  • @@ -5792,13 +5800,14 @@ build

  • CONFIG_IDLETHREAD_STACKSIZE: The size of the initial stack. This is the thread that (1) performs the initial boot of the system up - to the point where user_start() is spawned, and (2) there after is the - IDLE thread that executes only when there is no other thread ready to - run. + to the point where CONFIG_USER_ENTRYPOINT() is spawned, + and (2) there after is the IDLE thread that executes only when there + is no other thread ready to run.
  • CONFIG_USERMAIN_STACKSIZE: The size of the stack to allocate - for the main user thread that begins at the user_start() entry point. + for the main user thread that begins at the CONFIG_USER_ENTRYPOINT() + entry point.
  • CONFIG_PTHREAD_STACK_MIN: Minimum pthread stack size diff --git a/Documentation/UsbTrace.html b/Documentation/UsbTrace.html index 6d170044f5..ec48e260dd 100644 --- a/Documentation/UsbTrace.html +++ b/Documentation/UsbTrace.html @@ -150,7 +150,7 @@   - user_start: Registering USB serial driver + usbserial_main: Registering USB serial driver   @@ -158,7 +158,7 @@   - user_start: Successfully registered the serial driver + usbserial_main: Successfully registered the serial driver 1 @@ -170,11 +170,11 @@   - user_start: ERROR: Failed to open /dev/ttyUSB0 for reading: 107 + usbserial_main: ERROR: Failed to open /dev/ttyUSB0 for reading: 107   - user_start: Not connected. Wait and try again. + usbserial_main: Not connected. Wait and try again. 3