1# 2# Copyright (c) 2024 Intel Corporation 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7if LOG 8 9config LOG_BACKEND_I2C 10 bool "Enable I2C log backend" 11 depends on I2C_SEDI 12 select LOG_OUTPUT 13 help 14 When enabled, backend will use I2C for logging. 15 16if LOG_BACKEND_I2C 17 18config LOG_BACKEND_I2C_AUTOSTART 19 bool "Automatically start I2C backend" 20 default y 21 help 22 When enabled automatically start the I2C logging backend on 23 application start. When disabled, the application needs to start 24 the backend manually using log_backend_enable(). 25 26backend = I2C 27backend-str = i2c 28source "subsys/logging/Kconfig.template.log_format_config" 29 30config LOG_I2C_MAX_MSG_LEN 31 int "Maximum message length" 32 default 256 33 34config LOG_I2C_DEV_ADDR 35 hex "I2C address of I2C log device" 36 default 0x5E 37 38endif # LOG_BACKEND_I2C 39 40endif # LOG 41