diff --git a/pkg/Kconfig b/pkg/Kconfig index 1b4fa02bb9a92..83b54daf09d5c 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -7,7 +7,7 @@ menu "Packages" rsource "arduino_adafruit_sensor/Kconfig" -rsource "arduino_lis3dh/Kconfig" +rsource "arduino_adafruit_lis3dh/Kconfig" rsource "arduino_sdi_12/Kconfig" rsource "c25519/Kconfig" rsource "cayenne-lpp/Kconfig" diff --git a/pkg/arduino_lis3dh/Kconfig b/pkg/arduino_adafruit_lis3dh/Kconfig similarity index 62% rename from pkg/arduino_lis3dh/Kconfig rename to pkg/arduino_adafruit_lis3dh/Kconfig index b6454d8e1b5cc..68d1ec281af12 100644 --- a/pkg/arduino_lis3dh/Kconfig +++ b/pkg/arduino_adafruit_lis3dh/Kconfig @@ -5,24 +5,27 @@ # directory for more details. # -config PACKAGE_ARDUINO_LIS3DH - bool "Arduino Adafruit LIS3DH package" +config PACKAGE_ARDUINO_ADAFRUIT_LIS3DH + bool "Arduino Adafruit LIS3DH driver package" depends on TEST_KCONFIG select PACKAGE_ARDUINO_ADAFRUIT_SENSOR + help + Arduino driver package for the Adafruit Adafruit LIS3DH + Triple-Axis Accelerometer breakout with ST LIS3DH sensor choice MODULE_ARDUINO_LIS3DH bool "Device Interface" - depends on PACKAGE_ARDUINO_LIS3DH + depends on PACKAGE_ARDUINO_ADAFRUIT_LIS3DH help The driver supports LIS3DH connected either via SPI or I2C bus. - config MODULE_ARDUINO_LIS3DH_I2C + config MODULE_ARDUINO_ADAFRUIT_LIS3DH_I2C bool "I2C" depends on HAS_PERIPH_I2C select MODULE_PERIPH_I2C - config MODULE_ARDUINO_LIS3DH_SPI + config MODULE_ARDUINO_ADAFRUIT_LIS3DH_SPI bool "SPI" depends on HAS_PERIPH_SPI select MODULE_PERIPH_SPI diff --git a/pkg/arduino_lis3dh/Makefile b/pkg/arduino_adafruit_lis3dh/Makefile similarity index 88% rename from pkg/arduino_lis3dh/Makefile rename to pkg/arduino_adafruit_lis3dh/Makefile index 7ca4ffc76c5d1..fc1e9223d9237 100644 --- a/pkg/arduino_lis3dh/Makefile +++ b/pkg/arduino_adafruit_lis3dh/Makefile @@ -1,4 +1,4 @@ -PKG_NAME=arduino_lis3dh +PKG_NAME=arduino_adafruit_lis3dh PKG_URL=https://github.com/adafruit/Adafruit_LIS3DH.git PKG_VERSION=0f4cda36805570ca87f91d811227edff2958053b PKG_LICENSE=BSD diff --git a/pkg/arduino_lis3dh/Makefile.dep b/pkg/arduino_adafruit_lis3dh/Makefile.dep similarity index 100% rename from pkg/arduino_lis3dh/Makefile.dep rename to pkg/arduino_adafruit_lis3dh/Makefile.dep diff --git a/pkg/arduino_adafruit_lis3dh/Makefile.include b/pkg/arduino_adafruit_lis3dh/Makefile.include new file mode 100644 index 0000000000000..a242416a4041d --- /dev/null +++ b/pkg/arduino_adafruit_lis3dh/Makefile.include @@ -0,0 +1,4 @@ +PSEUDOMODULES += arduino_adafruit_lis3dh_i2c +PSEUDOMODULES += arduino_adafruit_lis3dh_spi + +INCLUDES += -I$(PKGDIRBASE)/arduino_adafruit_lis3dh diff --git a/pkg/arduino_adafruit_lis3dh/doc.txt b/pkg/arduino_adafruit_lis3dh/doc.txt new file mode 100644 index 0000000000000..744f6a47cb46c --- /dev/null +++ b/pkg/arduino_adafruit_lis3dh/doc.txt @@ -0,0 +1,7 @@ +/** + * @defgroup pkg_arduino_lis3dh Arduino Library for Adafruit LIS3DH breakout module + * @ingroup pkg + * @brief Arduino driver package for the Adafruit Adafruit LIS3DH + * Triple-Axis Accelerometer breakout with ST LIS3DH sensor + * @see https://github.com/adafruit/Adafruit_LIS3DH.git + */ diff --git a/pkg/arduino_lis3dh/Makefile.include b/pkg/arduino_lis3dh/Makefile.include deleted file mode 100644 index 642fd96d3e1ac..0000000000000 --- a/pkg/arduino_lis3dh/Makefile.include +++ /dev/null @@ -1,4 +0,0 @@ -PSEUDOMODULES += arduino_lis3dh_i2c -PSEUDOMODULES += arduino_lis3dh_spi - -INCLUDES += -I$(PKGDIRBASE)/arduino_lis3dh diff --git a/pkg/arduino_lis3dh/doc.txt b/pkg/arduino_lis3dh/doc.txt deleted file mode 100644 index fbdb940d9fc7f..0000000000000 --- a/pkg/arduino_lis3dh/doc.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @defgroup pkg_arduino_lis3dh Arduino Library for LIS3DH sensor - * @ingroup pkg - * @brief Library used for testing the Arduino SPI and I2C (TwoWire) interfaces - * @see https://github.com/adafruit/Adafruit_LIS3DH.git - */ diff --git a/tests/pkg_arduino_lis3dh/Makefile b/tests/pkg_arduino_adafruit_lis3dh/Makefile similarity index 57% rename from tests/pkg_arduino_lis3dh/Makefile rename to tests/pkg_arduino_adafruit_lis3dh/Makefile index 574a20dc2d3b4..9516684ffe4f1 100644 --- a/tests/pkg_arduino_lis3dh/Makefile +++ b/tests/pkg_arduino_adafruit_lis3dh/Makefile @@ -1,8 +1,8 @@ include ../Makefile.tests_common -DRIVER ?= arduino_lis3dh_i2c +DRIVER ?= arduino_adafruit_lis3dh_i2c -USEPKG += arduino_lis3dh +USEPKG += arduino_adafruit_lis3dh USEMODULE += $(DRIVER) include $(RIOTBASE)/Makefile.include diff --git a/tests/pkg_arduino_lis3dh/Makefile.ci b/tests/pkg_arduino_adafruit_lis3dh/Makefile.ci similarity index 100% rename from tests/pkg_arduino_lis3dh/Makefile.ci rename to tests/pkg_arduino_adafruit_lis3dh/Makefile.ci diff --git a/tests/pkg_arduino_lis3dh/app.config.test b/tests/pkg_arduino_adafruit_lis3dh/app.config.test similarity index 77% rename from tests/pkg_arduino_lis3dh/app.config.test rename to tests/pkg_arduino_adafruit_lis3dh/app.config.test index 4991ac83aea3d..221c0e38aee36 100644 --- a/tests/pkg_arduino_lis3dh/app.config.test +++ b/tests/pkg_arduino_adafruit_lis3dh/app.config.test @@ -1,3 +1,3 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. -CONFIG_PACKAGE_ARDUINO_LIS3DH=y +CONFIG_PACKAGE_ARDUINO_ADAFRUIT_LIS3DH=y diff --git a/tests/pkg_arduino_lis3dh/main.cpp b/tests/pkg_arduino_adafruit_lis3dh/main.cpp similarity index 100% rename from tests/pkg_arduino_lis3dh/main.cpp rename to tests/pkg_arduino_adafruit_lis3dh/main.cpp