| # |
| # Copyright (c) 2022 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| # Configure logging over USB |
| # - do enable shell to reduce flash usage |
| # - disable CDC ACM logs as it may lead to infinite loop when CDC ACM is used as the log backend |
| CONFIG_USB_DEVICE_STACK=y |
| CONFIG_CONSOLE=y |
| CONFIG_UART_CONSOLE=y |
| CONFIG_LOG_BACKEND_UART=y |
| CONFIG_SHELL_LOG_BACKEND=n |
| CONFIG_UART_LINE_CTRL=y |
| CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y |
| |
| # The minimal logging mode does not work properly with the USB CDC device, so use the deferred mode |
| CONFIG_LOG_MODE_MINIMAL=n |
| CONFIG_LOG2_MODE_DEFERRED=y |
| CONFIG_LOG_BUFFER_SIZE=8192 |
| |
| # Reduce the code size as the dongle reserves some space for MBR and Open Bootloader |
| CONFIG_ASSERT_VERBOSE=n |
| CONFIG_SHELL=n |
| CONFIG_OPENTHREAD_SHELL=n |
| CONFIG_MATTER_LOG_LEVEL_INF=y |
| |
| # Use partition manager to configure the settings partition not to overlap with Open Bootloader |
| CONFIG_PM_SINGLE_IMAGE=y |
| |
| # Enable CHIP pairing automatically on application start. |
| CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y |