From d70ffc69fb57f973816815586ac88c25dd84fa7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Thu, 28 Oct 2021 16:16:45 +0200 Subject: [PATCH] pkg/arduino_api: add new package From https://github.com/arduino/ArduinoCore-API Required by pkg/arduino_sdi_12 Improves compatibility with Arduino --- pkg/arduino_api/Kconfig | 4 ++++ pkg/arduino_api/Makefile | 11 +++++++++++ pkg/arduino_api/Makefile.dep | 1 + pkg/arduino_api/Makefile.include | 3 +++ pkg/arduino_api/doc.txt | 6 ++++++ .../0001-Chages-for-RIOT-integration.patch | Bin 0 -> 2937 bytes 6 files changed, 25 insertions(+) create mode 100644 pkg/arduino_api/Kconfig create mode 100644 pkg/arduino_api/Makefile create mode 100644 pkg/arduino_api/Makefile.dep create mode 100644 pkg/arduino_api/Makefile.include create mode 100644 pkg/arduino_api/doc.txt create mode 100644 pkg/arduino_api/patches/0001-Chages-for-RIOT-integration.patch 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 0000000000000000000000000000000000000000..9760cc7c80d84a46f7ee1cc723977c6d99af8211 GIT binary patch literal 2937 zcmb_eZF1W-5dF_n>^L(S>Vq^%$sb}OJBeaXm8oNm%``vKj0Pk?2?+_XB z$WrfsrXHM00hg=*{{TEMG+zij&$mu7ObFxSH_@qcc>Krlt8s8L4!oD-ic`E!dcQR1dm5E}kuN!ZSCK`H}UKC>Fw7M*H9o;5<+5FAq3y` ztck>7p`7STfeR}3S?v}X;o=D-OHx)$jZG~#ekBoA%1Y-%B$9Hm2;ng1%Ca0d<)2|^ zNh%OhLClx{%94zfjP3v{OIcRvbis0Y#egV9lI1RC`eITn%eqjI)*`{&D$Ba$3&E%( z)6|K-gz(A*gCb1hAAkP%i(TJ`oZ~nakb>_{WS&dmEeFduhWO&A)=Bo{ao2j$Fe9-Q(S(* z)ppjKC0JZg_8F3)M+SSub(4UOC>w(BdHchmg_&>7wR*kYw&B?`aC~pnA3;xF_5lsG zs0_rANwI*U&MGz)zv8`Ja51m=HJdBI+dkAtp+kJA6tWT@wW;)VFQ~#uR9)B_2yHZgWKy=4TdZt@>xR+H+%&A%$p+qjnjE+;+edN+ zqucD*~*35Htwu-Wk-h&L3B26WH z)n>(VR8fViDb!W%1QD)RS16bU>}ch%B2}~PV`w(Q?sn|xW|MEiZAQaxENeU$uuhb4 zRBTqx=X&)f$ciM$$>#a41)oMoMsT$lq2qV_S==j*&Yz*iVN&|*t>wFAu0Ek?4{_;FT@n^|L$VeVj0#zalrsKB5grZ8C&8tfW zN;U@qv$uA#1D}@W1l0#*i?!VWj)w~>5TiOKsd0LWsl0n{dbtav1J045kskl5{{U8G zLcgvZA-U|kxPu6EJEXHJ-Bb)<|AX%ujgH-F5zfN2@ExtHpmBi^-vr`} zCon5!