2014-10-27 14:53:12 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see misc/tools/kconfig-language.txt.
|
|
|
|
#
|
|
|
|
|
|
|
|
config INTERPRETERS_BAS
|
|
|
|
bool "Basic Interpreter support"
|
|
|
|
default n
|
2014-11-07 18:16:14 +01:00
|
|
|
select LIBC_FLOATINGPOINT
|
2014-10-28 01:41:09 +01:00
|
|
|
depends on FS_READABLE
|
2014-10-27 14:53:12 +01:00
|
|
|
---help---
|
|
|
|
This is a Basic interpreter written by Michael Haardt
|
|
|
|
|
2014-10-27 16:24:04 +01:00
|
|
|
NOTE: This interpreter requires a usable math.h header file. By
|
|
|
|
default, the math library (and hence, math.h) are not provided by
|
|
|
|
NuttX. Therefore, when the Basic code includes math.h it will
|
|
|
|
either fail to find the math.h header file or, worse, will take an
|
|
|
|
incompatible version of math.h from your toolchain. The toolchain's
|
|
|
|
version of math.h will be incompatible because it will have been
|
|
|
|
implemented to work with a different version of the C library.
|
|
|
|
|
|
|
|
Normally, developers will use an optimized math library for their
|
|
|
|
processor architecture and do the following:
|
|
|
|
|
|
|
|
- Save a customized copy of math.h from your tool chain in
|
|
|
|
nuttx/arch/<arch>/include
|
|
|
|
- Set CONFIG_ARCH_MATH_H=y in your .config file to select this
|
|
|
|
architecture-specific math.h header file.
|
|
|
|
|
|
|
|
An option is to use the built-in, generic, unoptimized NuttX math
|
|
|
|
library that is selected by simply by:
|
|
|
|
|
|
|
|
- Set CONFIG_LIBM=y in your .config file
|
|
|
|
|
2014-10-27 14:53:12 +01:00
|
|
|
if INTERPRETERS_BAS
|
2014-10-27 22:37:19 +01:00
|
|
|
|
2014-11-03 16:11:25 +01:00
|
|
|
config INTERPRETER_BAS_VERSION
|
|
|
|
string "Version number"
|
|
|
|
default "2.4"
|
|
|
|
|
2014-11-06 23:57:17 +01:00
|
|
|
config INTERPRETER_BAS_PRIORITY
|
|
|
|
int "Basic interpreter priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Task priority of the Basic interpreter main task
|
|
|
|
|
|
|
|
config INTERPRETER_BAS_STACKSIZE
|
|
|
|
int "Basic interpreter stack size"
|
|
|
|
default 4096
|
|
|
|
---help---
|
|
|
|
Size of the stack allocated for the Basic interpreter main task
|
|
|
|
|
2014-11-07 16:06:00 +01:00
|
|
|
config INTERPREPTER_BAS_VT100
|
|
|
|
bool "VT100 terminal support"
|
|
|
|
default y
|
|
|
|
|
2014-11-03 16:11:25 +01:00
|
|
|
config INTERPRETER_BAS_USE_LR0
|
|
|
|
bool "LR0 parser"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Select if you want LR0 parser.
|
|
|
|
|
|
|
|
config INTERPRETER_BAS_USE_SELECT
|
|
|
|
bool "Use select()"
|
|
|
|
default n
|
2014-10-27 22:37:19 +01:00
|
|
|
|
2014-11-06 20:16:22 +01:00
|
|
|
config INTERPRETER_BAS_HAVE_FTRUNCATE
|
|
|
|
bool
|
|
|
|
default n
|
2014-11-06 21:11:58 +01:00
|
|
|
---help---
|
2014-11-06 20:16:22 +01:00
|
|
|
NuttX does not currently support the ftruncate interface
|
|
|
|
|
2014-11-24 15:41:04 +01:00
|
|
|
config EXAMPLES_BAS_SHELL
|
|
|
|
bool "Shell support"
|
|
|
|
default n
|
|
|
|
depends on ARCH_HAVE_VFORK && EXPERIMENTAL
|
2014-11-24 16:12:56 +01:00
|
|
|
select LIBC_EXECFUNCS
|
|
|
|
select SCHED_WAITPID
|
2014-11-24 15:41:04 +01:00
|
|
|
---help---
|
|
|
|
Support execution of shell commands from BASIC.
|
|
|
|
|
|
|
|
config EXAMPLES_BAS_EDITOR
|
|
|
|
bool "Editor support"
|
|
|
|
default n
|
2014-11-24 16:12:56 +01:00
|
|
|
depends on EXAMPLES_BAS_SHELL
|
2014-11-24 15:41:04 +01:00
|
|
|
---help---
|
|
|
|
Support execution of an editor from BASIC.
|
|
|
|
|
2014-10-27 14:53:12 +01:00
|
|
|
endif
|