From b45a3f9ad0ede82841e7c27c8ecd945cc7f3bdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=BC=C3=9Fler?= Date: Thu, 6 Apr 2023 11:01:15 +0200 Subject: [PATCH] tests/drivers_at24cxxx: make it easier to select other EEPROMS --- tests/driver_at24cxxx/Makefile | 4 +++- tests/driver_at24cxxx/README.md | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tests/driver_at24cxxx/README.md diff --git a/tests/driver_at24cxxx/Makefile b/tests/driver_at24cxxx/Makefile index 26bcdf18da..c28504d14c 100644 --- a/tests/driver_at24cxxx/Makefile +++ b/tests/driver_at24cxxx/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common -USEMODULE += at24c256 +AT24CXXX_DEV ?= at24c256 + +USEMODULE += $(AT24CXXX_DEV) include $(RIOTBASE)/Makefile.include diff --git a/tests/driver_at24cxxx/README.md b/tests/driver_at24cxxx/README.md new file mode 100644 index 0000000000..97ef883435 --- /dev/null +++ b/tests/driver_at24cxxx/README.md @@ -0,0 +1,10 @@ +Test for at24cxxx EEPROMS +========================= +This tests general functionality of at24cxxx EEPROMS. +To select the right EEPROM, for example at24c256, do `AT24CXXX_DEV=at24c256 BOARD= make flash term`. +The at24c256 is selected by default. +To see a list of supported devices, take a look at `drivers/at24cxxx/include/at24cxxx_defines.h` + +Expected result +=============== +You should see that all tests print `[SUCCESS]` and that the tests finish.