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
222 B
CMake
9 lines
222 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(shell)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|