mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Expose scpi-parser unit support through explicit Kconfig options instead of raw CFLAGS. Map each option to the corresponding upstream USE_UNITS_* compile-time define, preserving the existing default unit set while allowing users to enable groups such as USE_UNITS_TIME. Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
88 lines
1.5 KiB
Text
88 lines
1.5 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config SCPI_PARSER
|
|
tristate "SCPI instrument side parser"
|
|
default n
|
|
|
|
if SCPI_PARSER
|
|
|
|
menu "SCPI parser unit support"
|
|
|
|
config SCPI_PARSER_UNITS_IMPERIAL
|
|
bool "Imperial units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_ANGLE
|
|
bool "Angle units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_PARTICLES
|
|
bool "Particle units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_DISTANCE
|
|
bool "Distance units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_MAGNETIC
|
|
bool "Magnetic units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_LIGHT
|
|
bool "Light units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_ENERGY_FORCE_MASS
|
|
bool "Energy, force, and mass units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_TIME
|
|
bool "Time units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_TEMPERATURE
|
|
bool "Temperature units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_RATIO
|
|
bool "Ratio units"
|
|
default n
|
|
|
|
config SCPI_PARSER_UNITS_POWER
|
|
bool "Power units"
|
|
default y
|
|
|
|
config SCPI_PARSER_UNITS_FREQUENCY
|
|
bool "Frequency units"
|
|
default y
|
|
|
|
config SCPI_PARSER_UNITS_ELECTRIC
|
|
bool "Electric units"
|
|
default y
|
|
|
|
config SCPI_PARSER_UNITS_ELECTRIC_CHARGE_CONDUCTANCE
|
|
bool "Electric charge and conductance units"
|
|
default n
|
|
|
|
endmenu
|
|
|
|
config SCPI_PARSER_DEMO
|
|
bool "Enable the SCPI parser library demo"
|
|
default n
|
|
|
|
if SCPI_PARSER_DEMO
|
|
|
|
config SCPI_PARSER_DEMO_PRIORITY
|
|
int "SCPI demo program priority"
|
|
default 100
|
|
|
|
config SCPI_PARSER_DEMO_STACKSIZE
|
|
int "SCPI demo program stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|
|
|
|
endif
|