Commit ad242b9d authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Fabio Baltieri
Browse files

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: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent a3c430a0
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# 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"
+0 −1
Original line number Diff line number Diff line
SimpleMessage.buffer max_size:8 fixed_length:true
+1 −0
Original line number Diff line number Diff line
SimpleMessage.buffer max_size:@CONFIG_SAMPLE_BUFFER_SIZE@ fixed_length:true