From a7a8b028548f9c32060c291c201bdf99ba66cbf3 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 24 May 2021 20:44:16 +0700 Subject: [PATCH 1/4] use CMSIS-Atmel-1.2.2 to fix LITTLE_ENDIAN warning --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.txt b/platform.txt index 06fd0ffaf..790d5b84e 100644 --- a/platform.txt +++ b/platform.txt @@ -70,7 +70,7 @@ compiler.S.extra_flags= compiler.ar.extra_flags= compiler.elf2hex.extra_flags= -compiler.arm.cmsis.c.flags="-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/Core/Include/" "-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/DSP/Include/" "-I{runtime.tools.CMSIS-Atmel-1.2.1.path}/CMSIS/Device/ATMEL/" +compiler.arm.cmsis.c.flags="-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/Core/Include/" "-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/DSP/Include/" "-I{runtime.tools.CMSIS-Atmel-1.2.2.path}/CMSIS/Device/ATMEL/" compiler.arm.cmsis.ldflags="-L{runtime.tools.CMSIS-5.4.0.path}/CMSIS/Lib/GCC/" -larm_cortexM0l_math compiler.libraries.ldflags= From 51bd7a7967acabd0be4329215f197709d8f235f2 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 24 May 2021 21:31:52 +0700 Subject: [PATCH 2/4] better fix warning with "-Wclass-memaccess" in SPI --- libraries/SPI/SPI.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 5a321b566..48a7b99b9 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -333,24 +333,16 @@ void SPIClass::dmaAllocate(void) { use_dma = true; // Everything allocated successfully extraWriteDescriptors = &extraReadDescriptors[numReadDescriptors]; - // dmac.h didn't include extern "C" which cause - // DmacDescriptor and its members are defined as C++ struct therefore - // memcpy will throw warning on copying where simple assignment won't work - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wclass-memaccess" - // Initialize descriptors (copy from first ones) + // cast to void* to suppress warning: with no trivial copy-assignment [-Wclass-memaccess] for(int i=0; i Date: Mon, 24 May 2021 23:33:24 +0700 Subject: [PATCH 3/4] also bump tinyusb --- libraries/Adafruit_TinyUSB_Arduino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Adafruit_TinyUSB_Arduino b/libraries/Adafruit_TinyUSB_Arduino index 1b8b9c9b0..d26aa1bbd 160000 --- a/libraries/Adafruit_TinyUSB_Arduino +++ b/libraries/Adafruit_TinyUSB_Arduino @@ -1 +1 @@ -Subproject commit 1b8b9c9b071065235341d0e503f2d6d05de19524 +Subproject commit d26aa1bbd2c5563b3a96ab4a3acccecbd91bb690 From 33a1e15fb0d16b9912976392ab02448531a22cde Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 24 May 2021 23:33:50 +0700 Subject: [PATCH 4/4] increase version to 1.7.1 --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.txt b/platform.txt index 790d5b84e..0848a8db0 100644 --- a/platform.txt +++ b/platform.txt @@ -20,7 +20,7 @@ # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification name=Adafruit SAMD (32-bits ARM Cortex-M0+ and Cortex-M4) Boards -version=1.7.0 +version=1.7.1 # Compile variables # -----------------