Finish firmware private transport stack
This commit is contained in:
@@ -17,6 +17,14 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
project(new_kbd)
|
||||
|
||||
if(NOT c_std_11 IN_LIST CMAKE_C_COMPILE_FEATURES)
|
||||
list(APPEND CMAKE_C_COMPILE_FEATURES c_std_11)
|
||||
endif()
|
||||
|
||||
set(PROTOBUF_PROTOC_EXECUTABLE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/protoc_nanopb.bat"
|
||||
CACHE FILEPATH "Project-local protoc wrapper for nanopb" FORCE)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${ZEPHYR_BASE}/modules/nanopb)
|
||||
include(nanopb)
|
||||
|
||||
@@ -40,6 +48,8 @@ zephyr_nanopb_sources(app
|
||||
KeyBorad/proto/keyboard.proto
|
||||
)
|
||||
|
||||
target_link_libraries(app PRIVATE nanopb)
|
||||
|
||||
target_sources(app PRIVATE
|
||||
src/main.c
|
||||
src/events/battery_status_event.c
|
||||
|
||||
Reference in New Issue
Block a user