mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Introduce a new CONFIG_UORB_FORMAT Kconfig option to control whether uORB format strings are compiled in. UORB_LISTENER, UORB_GENERATOR, and DEBUG_UORB all select UORB_FORMAT automatically, so format strings are included when any of these features are enabled. This replaces the previous approach of guarding format strings with CONFIG_DEBUG_UORB, which prevented uorb_listener from displaying sensor data when debug output was disabled. Signed-off-by: hanzhijian <hanzhijian@zepp.com>
83 lines
1.3 KiB
Text
83 lines
1.3 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig UORB
|
|
tristate "uorb(micro object request broker)"
|
|
depends on SENSORS && USENSOR
|
|
default n
|
|
|
|
if UORB
|
|
|
|
config UORB_PRIORITY
|
|
int "task priority"
|
|
default 100
|
|
|
|
config UORB_STACKSIZE
|
|
int "stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
config UORB_FORMAT
|
|
bool
|
|
default n
|
|
|
|
config UORB_LISTENER
|
|
bool "uorb listener"
|
|
select UORB_FORMAT
|
|
default n
|
|
|
|
config UORB_GENERATOR
|
|
bool "uorb generator"
|
|
select UORB_FORMAT
|
|
default n
|
|
|
|
config UORB_TESTS
|
|
bool "uorb unit tests"
|
|
default n
|
|
|
|
config UORB_LOOP_MAX_EVENTS
|
|
int "uorb loop max events"
|
|
depends on EVENT_FD
|
|
default 0
|
|
|
|
if UORB_TESTS
|
|
|
|
config UORB_STORAGE_DIR
|
|
string "uorb test result storage dir"
|
|
default "/data/"
|
|
|
|
endif # UORB_TESTS
|
|
|
|
config DEBUG_UORB
|
|
bool "uorb debug output"
|
|
select LIBC_PRINT_EXTENSION
|
|
select UORB_FORMAT
|
|
depends on LIBC_FLOATINGPOINT && SENSORS_USE_FLOAT
|
|
default n
|
|
|
|
if DEBUG_UORB
|
|
|
|
config UORB_ALERT
|
|
bool "uorb panic output"
|
|
default n
|
|
depends on DEBUG_ALERT
|
|
|
|
config UORB_ERROR
|
|
bool "uorb error output"
|
|
default n
|
|
depends on DEBUG_ERROR
|
|
|
|
config UORB_WARN
|
|
bool "uorb warn output"
|
|
default n
|
|
depends on DEBUG_WARN
|
|
|
|
config UORB_INFO
|
|
bool "uorb info output"
|
|
default n
|
|
depends on DEBUG_INFO
|
|
|
|
endif # DEBUG_UORB
|
|
|
|
endif # UORB
|