36 lines
971 B
Plaintext
36 lines
971 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config SYSTEM_SYSTEM
|
|
bool "System Command"
|
|
default n
|
|
depends on NSH_LIBRARY && SCHED_WAITPID
|
|
---help---
|
|
Enable support for the system() interface. This will support
|
|
execution of NSH commands from C code.
|
|
|
|
if SYSTEM_SYSTEM
|
|
|
|
config SYSTEM_SYSTEM_STACKSIZE
|
|
int "system stack size"
|
|
default 2048 if !ARCH_SIM
|
|
default 4096 if ARCH_SIM
|
|
---help---
|
|
The size of stack allocated for the shell.
|
|
|
|
NOTE: I needed to set the stack size quite large to get this example
|
|
working on the simulated target (perhaps because of the 64-bit
|
|
stack? Or perhaps that is a sneak call into the host libc that I
|
|
have not caught). I assume that a smaller stack would be okay on
|
|
real hardware, but I have not yet verified that.
|
|
|
|
config SYSTEM_SYSTEM_PRIORITY
|
|
int "system priority"
|
|
default 100
|
|
---help---
|
|
The priority of the shell.
|
|
|
|
endif
|