mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
sched: Support config the argument passed to init
it is useful to pass the nonempty argument to change the init task behaviour Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I684e9c76b9eac54404d0e4e63ab78e51e039c9a8
This commit is contained in:
+14
-7
@@ -329,6 +329,13 @@ config INIT_FILEPATH
|
||||
|
||||
endchoice # Initialization task
|
||||
|
||||
config INIT_ARGS
|
||||
string "Application argument list"
|
||||
depends on !INIT_NONE
|
||||
---help---
|
||||
The argument list for user applications. e.g.:
|
||||
"\"arg1\",\"arg2\",\"arg3\""
|
||||
|
||||
if INIT_ENTRYPOINT
|
||||
config USER_ENTRYPOINT
|
||||
string "Application entry point"
|
||||
@@ -338,6 +345,13 @@ config USER_ENTRYPOINT
|
||||
applications this is of the form 'app_main' where 'app' is the application
|
||||
name. If not defined, USER_ENTRYPOINT defaults to "main".
|
||||
|
||||
config USERMAIN_STACKSIZE
|
||||
int "Main thread stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
---help---
|
||||
The size of the stack to allocate for the user initialization thread
|
||||
that is started as soon as the OS completes its initialization.
|
||||
|
||||
config USERMAIN_PRIORITY
|
||||
int "init thread priority"
|
||||
default 100
|
||||
@@ -1741,13 +1755,6 @@ config IDLETHREAD_STACKSIZE
|
||||
point where start-up application 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
|
||||
int "Main thread stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
---help---
|
||||
The size of the stack to allocate for the user initialization thread
|
||||
that is started as soon as the OS completes its initialization.
|
||||
|
||||
config PTHREAD_STACK_MIN
|
||||
int "Minimum pthread stack size"
|
||||
default 256
|
||||
|
||||
Reference in New Issue
Block a user