From 5d9e9fb9d7088a24d216ff2359fb4a3d5327e8f5 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 18 Feb 2021 13:21:40 +0100 Subject: [PATCH 1/2] sys/shell/commands: add i2c_scanner deps to Kconfig --- sys/shell/commands/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/shell/commands/Kconfig b/sys/shell/commands/Kconfig index f64e8077bb..667308ae7a 100644 --- a/sys/shell/commands/Kconfig +++ b/sys/shell/commands/Kconfig @@ -5,6 +5,11 @@ # directory for more details. # -config MODULE_SHELL_COMMANDS +menuconfig MODULE_SHELL_COMMANDS bool "Basic shell commands" depends on MODULE_SHELL + +config MODULE_I2C_SCAN + bool "I2c scanner" + depends on MODULE_SHELL + depends on MODULE_PERIPH_I2C From fe151922003dffa03b23d246de6e07e3ca5718b1 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 8 Jan 2021 10:52:18 +0100 Subject: [PATCH 2/2] tests/periph_i2c: include I2C scanner per default --- tests/periph_i2c/Makefile | 2 ++ tests/periph_i2c/Makefile.ci | 1 + tests/periph_i2c/app.config.test | 2 ++ 3 files changed, 5 insertions(+) diff --git a/tests/periph_i2c/Makefile b/tests/periph_i2c/Makefile index 868bad2427..bafa06c4a2 100644 --- a/tests/periph_i2c/Makefile +++ b/tests/periph_i2c/Makefile @@ -5,6 +5,8 @@ FEATURES_REQUIRED = periph_i2c FEATURES_OPTIONAL = periph_i2c_reconfigure USEMODULE += shell +USEMODULE += shell_commands +USEMODULE += i2c_scan USEMODULE += xtimer # avoid running Kconfig by default diff --git a/tests/periph_i2c/Makefile.ci b/tests/periph_i2c/Makefile.ci index cd13c9e96d..0bd1b38ce6 100644 --- a/tests/periph_i2c/Makefile.ci +++ b/tests/periph_i2c/Makefile.ci @@ -5,4 +5,5 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ nucleo-l011k4 \ + samd10-xmini \ # diff --git a/tests/periph_i2c/app.config.test b/tests/periph_i2c/app.config.test index e3da3e8e15..47bbe4894c 100644 --- a/tests/periph_i2c/app.config.test +++ b/tests/periph_i2c/app.config.test @@ -1,5 +1,7 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. +CONFIG_MODULE_I2C_SCAN=y CONFIG_MODULE_PERIPH_I2C=y CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_COMMANDS=y CONFIG_MODULE_XTIMER=y