diff --git a/pkg/arduino_api/Kconfig b/pkg/arduino_api/Kconfig new file mode 100644 index 0000000000..ca6b4cd312 --- /dev/null +++ b/pkg/arduino_api/Kconfig @@ -0,0 +1,4 @@ +config PACKAGE_ARDUINO_API + bool "Arduino API package" + depends on TEST_KCONFIG + depends on MODULE_ARDUINO diff --git a/pkg/arduino_api/Makefile b/pkg/arduino_api/Makefile new file mode 100644 index 0000000000..6aef8114a0 --- /dev/null +++ b/pkg/arduino_api/Makefile @@ -0,0 +1,11 @@ +PKG_NAME=arduino_api +PKG_URL=https://github.com/arduino/ArduinoCore-API +PKG_VERSION=e03b65374c614130aa1b11597e07b3b5089a726d +PKG_LICENSE=LGPL-2.1 + +GITAMFLAGS = --3way + +include $(RIOTBASE)/pkg/pkg.mk + +all: + $(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/api -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME) diff --git a/pkg/arduino_api/Makefile.dep b/pkg/arduino_api/Makefile.dep new file mode 100644 index 0000000000..60bad41674 --- /dev/null +++ b/pkg/arduino_api/Makefile.dep @@ -0,0 +1 @@ +USEMODULE += arduino diff --git a/pkg/arduino_api/Makefile.include b/pkg/arduino_api/Makefile.include new file mode 100644 index 0000000000..d8d5bd0cbe --- /dev/null +++ b/pkg/arduino_api/Makefile.include @@ -0,0 +1,3 @@ +INCLUDES += -I$(PKGDIRBASE)/arduino_api/api + +CXXEXFLAGS += -std=c++11 diff --git a/pkg/arduino_api/doc.txt b/pkg/arduino_api/doc.txt new file mode 100644 index 0000000000..67238b2100 --- /dev/null +++ b/pkg/arduino_api/doc.txt @@ -0,0 +1,6 @@ +/** + * @defgroup pkg_arduino_api Hardware independent layer of the Arduino cores + * @ingroup pkg + * @brief Hardware independent layer of the Arduino cores + * @see https://github.com/arduino/ArduinoCore-API + */ diff --git a/pkg/arduino_api/patches/0001-Chages-for-RIOT-integration.patch b/pkg/arduino_api/patches/0001-Chages-for-RIOT-integration.patch new file mode 100644 index 0000000000..9760cc7c80 Binary files /dev/null and b/pkg/arduino_api/patches/0001-Chages-for-RIOT-integration.patch differ