From ec82c65b905effe3f8c5e2cd705ca452514b7b5e Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Wed, 21 Mar 2018 11:54:03 +0100
Subject: [PATCH] pkg: add support for Cayenne LPP format

---
 pkg/cayenne-lpp/Makefile             | 11 +++++++++++
 pkg/cayenne-lpp/Makefile.cayenne-lpp |  3 +++
 pkg/cayenne-lpp/Makefile.include     |  1 +
 pkg/cayenne-lpp/doc.txt              | 14 ++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 pkg/cayenne-lpp/Makefile
 create mode 100644 pkg/cayenne-lpp/Makefile.cayenne-lpp
 create mode 100644 pkg/cayenne-lpp/Makefile.include
 create mode 100644 pkg/cayenne-lpp/doc.txt

diff --git a/pkg/cayenne-lpp/Makefile b/pkg/cayenne-lpp/Makefile
new file mode 100644
index 0000000000..f89af7e819
--- /dev/null
+++ b/pkg/cayenne-lpp/Makefile
@@ -0,0 +1,11 @@
+PKG_NAME=cayenne-lpp
+PKG_URL=https://github.com/aabadie/cayenne-lpp
+PKG_VERSION=ad3aa26043e221eda28ac3da2484e1ef84986442
+PKG_LICENSE=LGPLv2.1
+
+.PHONY: all
+
+all: git-download
+	"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
+
+include $(RIOTBASE)/pkg/pkg.mk
diff --git a/pkg/cayenne-lpp/Makefile.cayenne-lpp b/pkg/cayenne-lpp/Makefile.cayenne-lpp
new file mode 100644
index 0000000000..b82392d76c
--- /dev/null
+++ b/pkg/cayenne-lpp/Makefile.cayenne-lpp
@@ -0,0 +1,3 @@
+MODULE = cayenne-lpp
+
+include $(RIOTBASE)/Makefile.base
diff --git a/pkg/cayenne-lpp/Makefile.include b/pkg/cayenne-lpp/Makefile.include
new file mode 100644
index 0000000000..821c8bbd8c
--- /dev/null
+++ b/pkg/cayenne-lpp/Makefile.include
@@ -0,0 +1 @@
+INCLUDES += -I$(PKGDIRBASE)/cayenne-lpp
diff --git a/pkg/cayenne-lpp/doc.txt b/pkg/cayenne-lpp/doc.txt
new file mode 100644
index 0000000000..4420b5d20d
--- /dev/null
+++ b/pkg/cayenne-lpp/doc.txt
@@ -0,0 +1,14 @@
+/**
+ * @defgroup pkg_cayenne-lpp Cayenne Low Power Payload (LPP)
+ * @ingroup  pkg
+ * @ingroup  sys
+ * @brief    Provides a RIOT support for Cayenne LPP format
+ *
+ * The Cayenne Low Power Payload (LPP) provides a convenient and easy way to
+ * send data over LPWAN networks such as LoRaWAN.
+ *
+ * For more details on the format, see
+ * https://mydevices.com/cayenne/docs_stage/lora/#lora-cayenne-low-power-payload
+ *
+ * @see      https://github.com/aabadie/cayenne-lpp
+ */
-- 
GitLab