samples: modules: nanopb: Showcase configuring options
The latest version of nanopb allows for using kconfig symbols in files with an "options.in" extension. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
a3c430a01d
commit
ad242b9db8
|
@ -0,0 +1,14 @@
|
|||
# Private config options for nanopb app
|
||||
|
||||
# Copyright (c) 2024 Basalte bv
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mainmenu "Nanopb protobuf sample application"
|
||||
|
||||
config SAMPLE_BUFFER_SIZE
|
||||
int "Simple message buffer size"
|
||||
default 8
|
||||
help
|
||||
Configure the simple message buffer field's size.
|
||||
|
||||
source "Kconfig.zephyr"
|
|
@ -1 +0,0 @@
|
|||
SimpleMessage.buffer max_size:8 fixed_length:true
|
|
@ -0,0 +1 @@
|
|||
SimpleMessage.buffer max_size:@CONFIG_SAMPLE_BUFFER_SIZE@ fixed_length:true
|
Loading…
Reference in New Issue