From 649b315214f5fd07f95f18c7d570e0a7d9bf61a8 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 26 Jun 2020 12:17:24 +0200 Subject: [PATCH] pkg: add ATWINC15x0 vendor driver as package fixup! pkg: add ATWINC15x0 vendor driver as package fixup! pkg: add ATWINC15x0 vendor driver as package --- pkg/driver_atwinc15x0/Makefile | 19 ++++++++++++++++++ pkg/driver_atwinc15x0/Makefile.dep | 5 +++++ pkg/driver_atwinc15x0/Makefile.include | 1 + pkg/driver_atwinc15x0/doc.txt | 6 ++++++ .../0001-change-CONST-to-_CONST_.patch | Bin 0 -> 2395 bytes .../patches/0002-remove-platform-files.patch | Bin 0 -> 25758 bytes .../0003-change-default-debug-config.patch | Bin 0 -> 908 bytes ...004-fix-ETH_MODE-compilation-problem.patch | Bin 0 -> 912 bytes ...ove-dependency-from-spi_flash-module.patch | Bin 0 -> 753 bytes 9 files changed, 31 insertions(+) create mode 100644 pkg/driver_atwinc15x0/Makefile create mode 100644 pkg/driver_atwinc15x0/Makefile.dep create mode 100644 pkg/driver_atwinc15x0/Makefile.include create mode 100644 pkg/driver_atwinc15x0/doc.txt create mode 100644 pkg/driver_atwinc15x0/patches/0001-change-CONST-to-_CONST_.patch create mode 100644 pkg/driver_atwinc15x0/patches/0002-remove-platform-files.patch create mode 100644 pkg/driver_atwinc15x0/patches/0003-change-default-debug-config.patch create mode 100644 pkg/driver_atwinc15x0/patches/0004-fix-ETH_MODE-compilation-problem.patch create mode 100644 pkg/driver_atwinc15x0/patches/0005-remove-dependency-from-spi_flash-module.patch diff --git a/pkg/driver_atwinc15x0/Makefile b/pkg/driver_atwinc15x0/Makefile new file mode 100644 index 0000000000..39d75a31a5 --- /dev/null +++ b/pkg/driver_atwinc15x0/Makefile @@ -0,0 +1,19 @@ +PKG_NAME=driver_atwinc15x0 +PKG_URL=https://github.com/arduino-libraries/WiFi101 +PKG_VERSION=3301d03f82e53f60e07434a9f07ca677d992d121 +PKG_LICENSE=LGPL-2.1 + +include $(RIOTBASE)/pkg/pkg.mk + +CFLAGS += -Wno-discarded-qualifiers +CFLAGS += -Wno-empty-body +CFLAGS += -Wno-old-style-definition +CFLAGS += -Wno-unused-parameter +CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers + +CFLAGS += -DETH_MODE +CFLAGS += -I$(PKG_SOURCE_DIR)/src + +all: + "$(MAKE)" -C $(PKG_SOURCE_DIR)/src/driver/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0 + "$(MAKE)" -C $(PKG_SOURCE_DIR)/src/common/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0_common diff --git a/pkg/driver_atwinc15x0/Makefile.dep b/pkg/driver_atwinc15x0/Makefile.dep new file mode 100644 index 0000000000..487b9134f4 --- /dev/null +++ b/pkg/driver_atwinc15x0/Makefile.dep @@ -0,0 +1,5 @@ +FEATURES_REQUIRED += periph_gpio_irq +FEATURES_REQUIRED += periph_spi + +USEMODULE += driver_atwinc15x0 +USEMODULE += driver_atwinc15x0_common diff --git a/pkg/driver_atwinc15x0/Makefile.include b/pkg/driver_atwinc15x0/Makefile.include new file mode 100644 index 0000000000..280d4fc67a --- /dev/null +++ b/pkg/driver_atwinc15x0/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/driver_atwinc15x0/src diff --git a/pkg/driver_atwinc15x0/doc.txt b/pkg/driver_atwinc15x0/doc.txt new file mode 100644 index 0000000000..b001166e50 --- /dev/null +++ b/pkg/driver_atwinc15x0/doc.txt @@ -0,0 +1,6 @@ +/** + * @defgroup pkg_driver_atwinc15x0 ATWINC15x0 WiFi Module Vendor Driver Package + * @ingroup pkg + * @brief ATWINC15x0 WiFi vendor driver from the Arduino WiFi101 library + * @see https://github.com/arduino-libraries/WiFi101 + */ diff --git a/pkg/driver_atwinc15x0/patches/0001-change-CONST-to-_CONST_.patch b/pkg/driver_atwinc15x0/patches/0001-change-CONST-to-_CONST_.patch new file mode 100644 index 0000000000000000000000000000000000000000..5660ee2dfdf28920c5b7dc2c85cef8b8228fa022 GIT binary patch literal 2395 zcmb_dZI9YU5dO^mimCeLz}VQv#z1qGDF-PMTqxWrmD0%a%NjO?wPmlbjgtKL&f31* zan#9ORSU7+-SO=Bc^S{M(;FWhCA*!kp z$g{8)GNLeYQF-Pl_z0 zy{};*Jc{c>%nmfKYm2&I1LHZ(1WR~+p|s^fL=Uu@t8GFe7RR8fJ0`&IH5MH-ZV|>K z`Zw6N=>&eDX|~mmMsWxT+rY9U7T?HA6h(n=qy@=(A3P-Fj?h+QYegr96^iB2w=t&i@g*@1}YQawXGWDyBQ&qJ?%@Ql#(}yVw=WC9#uq&L0$mYN^>q znMfzQh-CH1a&nClYjn(c^E)xj*>>%hIJ6>zVs~-^$M2hFqhHPwoZ00(L~`9XOS4o1 zE_k!w7dQGCb(2xl3kMv~6km`_H5aIo@R5z~`~!>dLxl48N)1v$v;4VEAj)$SKAThm zpRn@E=lO6$1zZBU(c9imr?c%AU!>LRz;sW;Kg*VfAGzcx-H;~O8)zowDp48PeQAJd zz=daYjtVh6Z_i>cM+aQUgEzC^yw{sIw`=e1V!r5>#mKvI<7%;;{IZ;RYjfR&>)YkB z3;LrQU3R0VG^kHXd2#n+a literal 0 HcmV?d00001 diff --git a/pkg/driver_atwinc15x0/patches/0002-remove-platform-files.patch b/pkg/driver_atwinc15x0/patches/0002-remove-platform-files.patch new file mode 100644 index 0000000000000000000000000000000000000000..42d441d1422908db05b506f34b25b2dd1749d901 GIT binary patch literal 25758 zcmeHQZFk$YlKxEn3N(98BRiHX$#(4Iwmp$0%I03{WkuO;x9#DfD9YwWBDExCH#h12 z_I+jmzUa-e+s*0SbCuJ?CV&|X1_NL)c!0LTU@G1^CvS)D@u}n1j!%w`E7jV&`yh1gWAWV` zeSe75ciDI29|}!7cHfJ^{ro`G-ikKL*DAG&s2#n>f8hJ3Qms@9=6v{Ht`ol(Klkc` z#-*qop8P68cN#pnVm7hkaS%?$*qgXfp-?K73L*-f!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<%}Nnslor8*ucIRQF3*=s(RM4CRU|NW44|CAi4`aZi3>Og znj_^XBlM7J0|)Tn*#i1Gdmy0OjXjyWm`~NPk_3Q)0f~%}kZXa|;R0k7#z?V5Z-#el z@e;bkZZ32Lo2tb0q5~F)8+abp=qMsY0G2VXs)KU?*DV&En1ZZGg4dKV6;;gwGK_6E z53G`)qs&mG7SL|C#5Fbn-2)nv8bt)NJ5&c2LcOTVw!vlcz?jAqFYoSSOlX<`RMizO zyG*APnWbfu3@U(H)sw+spOMZUdW7n7vGyhm>LJ2hA-(*}#V8A_?9BBsN!(GKlWSlR z{wlM?yTq>6Let1#=;qIX@Z#4%8BZx@iKj@(Yrth7h6Yg>GOtMW8a3VpfOCNuG`D1n zp;O1CI3FlmBIwEFQ}r#_dvw-!$=rDniE!PB5cp>xq-p6h{%SmS)e6Z9wfeX3{ykr~p$ zqz!S3MaNv424{_)X2pZ7xw=Zc{AfHkVd5#i^85#2=kZRr7dRO6&UEyP|4Pm4DK9w} zs|l3FMhzQ=MFOf##|2?(Gf3^a`En8G1;RftyRE`v7iJ=ul$?iDBdDvF8^AD2Oq3x* z$Jx;2bdRNDTN8NjiJv|HSB<00`*4>4?oURkVnDar81m19TcDYM0;9cZWPXJeLu=w$ zc%e^(=|#~eu8ftdRo@Bxe?EBeK(rq+JUynQPI&p?)k8KUTR41>6i QrMM&twQ}{eTrCv-7q>fnW&i*H literal 0 HcmV?d00001 diff --git a/pkg/driver_atwinc15x0/patches/0003-change-default-debug-config.patch b/pkg/driver_atwinc15x0/patches/0003-change-default-debug-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..4c40cf4a823d1ec2a1e7d1d7628b0dfc684158ab GIT binary patch literal 908 zcmbu6U2obj6o#+oUvbplfI^JzBm|JIn`yEV$0nY@sq!K1Vn2RPpsd>k zy_jV=I>#r^dEet%ksml zqILr#grb?nL@=*ST);+Tc_Fe2Zgx#PE>AHwvbsf+xRMcUv$_Xt083lX2qVC}CD-hZr;AXkl>*n@=?dchWo~l$ z9%+-xpAd(XsDZ#ZAk+(m0_$_&`;G9AIv^_=KI$?agX^=NwP?>FjK>JBwX&@h@TVo8 zOz&Uj{E^$NO=%Wx{og3 z0E_9@>Ee&gztU&$TlVwQY-JJB*!Q;o$bBjQlenIKX+SOT3~p__Gdf+bI~e1xeSJU- J(-2dHegiq<2Gjrm literal 0 HcmV?d00001 diff --git a/pkg/driver_atwinc15x0/patches/0004-fix-ETH_MODE-compilation-problem.patch b/pkg/driver_atwinc15x0/patches/0004-fix-ETH_MODE-compilation-problem.patch new file mode 100644 index 0000000000000000000000000000000000000000..185d2e338ce906e555651ffa1d3010df273c0152 GIT binary patch literal 912 zcmbVJ%Z}PG6kX%5xT}gZ4;&{Xz?6z9kIpO*qseqtRVeWT+>(bJhe2&Wz7Ap9stZP{ zWFw`Di|FP1sSDr92Io(o{9r%_48MSoCs;n+ZP%N{5@?xM@{nq2TB=l;9e9qA>$(VPMF&jD zBUgjEY!u~#oaEbQDWpf?Cm0J;53*{}p{?+cv!7F`I!)LgK_=cRxea z+C)X+SV{&jacpVUZ)BlI(2O?Kyky*g7W)x2equ3@SzcK8ScKi5M2c4 fXu2FXLeyNt^sf{=6R*joyD^ctfQaYEo{!Kk-_;fV literal 0 HcmV?d00001 diff --git a/pkg/driver_atwinc15x0/patches/0005-remove-dependency-from-spi_flash-module.patch b/pkg/driver_atwinc15x0/patches/0005-remove-dependency-from-spi_flash-module.patch new file mode 100644 index 0000000000000000000000000000000000000000..b70b8905e371c8f5859fd371e887f894f4cf1999 GIT binary patch literal 753 zcmaJ;TW^~%7=4a^#aW+{5Wqk#K-Vc#FWVj>Rb_kXstE8$@DyxhNZM)Jf1hb9Z7-?y zS=RY3$H&JvMmOLT1ThaI5=kD+!zC@kBqQS@(Fq8}Pb&#h#-61G~z5N(Z7DB94vi4|&MJ!!!)jAckWRXW60n zL1mxf{`TY7%g$RioQ z(+5+MuNq;FUWwlb;n}^c#D0#h8x9;*$U3fVH2HHeGJuX z?bEk{q>}yksHMOZx!Fw^Mt|(K;ZJcTyS%W5WVc`NVrZ|?<<|06Ka#;?O$vQII3`=j z4%!+r^_e>|)Z^mcM{G$AL}NZVXAbPLK%