blob: a97621181efc75712cfefe2d00b74c1815011b20 [file] [log] [blame]
Dmytro Huzfec65602023-03-07 16:00:13 +02001#
2# Copyright (c) 2020 Project CHIP Authors
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# This file should be used as a configuration overlay to build Pigweed RPCs to
18# lighting-app.
19
20# Enable Pigweed RPC
21CONFIG_CHIP_PW_RPC=y
22
23# Add support for C++17 to build Pigweed components
24CONFIG_STD_CPP14=n
25CONFIG_STD_CPP17=y
26
27# Add support for Zephyr console component to use it for Pigweed console purposes
28CONFIG_CONSOLE_SUBSYS=y
29CONFIG_CONSOLE_GETCHAR=y
30CONFIG_CONSOLE_PUTCHAR_BUFSIZE=256
31
32# Disable features which may interfere with Pigweed HDLC transport
33CONFIG_SHELL=n
34CONFIG_OPENTHREAD_SHELL=n
35CONFIG_BOOT_BANNER=n
36
37# Configure Zephyr logger with defaults backends disabled as the app provides its own,
38# based on Pigweed HDLC.
39CONFIG_LOG=y
40CONFIG_LOG_MODE_MINIMAL=n
41CONFIG_LOG_MODE_IMMEDIATE=y
42CONFIG_LOG_BACKEND_UART=n
43CONFIG_LOG_BACKEND_RTT=n
44CONFIG_LOG_OUTPUT=y
45
46# Increase zephyr tty rx buffer
47CONFIG_CONSOLE_GETCHAR_BUFSIZE=128