From d31eb7cff36cd47c5df6b6d6b3545b40f3c9b423 Mon Sep 17 00:00:00 2001 From: Dong Wang Date: Tue, 14 May 2024 15:34:04 +0800 Subject: [PATCH] iut: enable log subsystem and i2c log backend Signed-off-by: Dong Wang --- zephyr/iut_test/app.overlay | 5 +++++ zephyr/iut_test/prj.conf | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 zephyr/iut_test/app.overlay diff --git a/zephyr/iut_test/app.overlay b/zephyr/iut_test/app.overlay new file mode 100644 index 0000000..0a2026b --- /dev/null +++ b/zephyr/iut_test/app.overlay @@ -0,0 +1,5 @@ +/ { + chosen { + zephyr.log-i2c=&i2c0; + }; +}; diff --git a/zephyr/iut_test/prj.conf b/zephyr/iut_test/prj.conf index 58e08cd..6e47a10 100644 --- a/zephyr/iut_test/prj.conf +++ b/zephyr/iut_test/prj.conf @@ -23,6 +23,11 @@ CONFIG_SHELL_THREAD_PRIORITY=13 # debug #CONFIG_NO_OPTIMIZATIONS=y +# logging +CONFIG_LOG=y +CONFIG_LOG_PRINTK=y +CONFIG_LOG_BACKEND_I2C=y + # DMA CONFIG_DMA=y