Added some new APIs to get the backend instances more easily, so that dev does not need to rely on `shell_backend_*_get_ptr`, which looks more like a hack to access a local variable. These APIs are basically copied from the log backend implementation. Added testcase for the APIs. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
9 lines
189 B
Plaintext
9 lines
189 B
Plaintext
CONFIG_SHELL=y
|
|
CONFIG_SHELL_BACKEND_DUMMY=y
|
|
CONFIG_SHELL_BACKEND_SERIAL=y
|
|
CONFIG_SHELL_CMD_BUFF_SIZE=90
|
|
CONFIG_SHELL_PRINTF_BUFF_SIZE=15
|
|
CONFIG_SHELL_METAKEYS=n
|
|
CONFIG_LOG=n
|
|
CONFIG_ZTEST=y
|