From 18df8eaf8b07422a6de9027bba3866a40619fda5 Mon Sep 17 00:00:00 2001 From: John Boiles Date: Wed, 31 Jul 2024 17:09:25 -0700 Subject: [PATCH 1/4] For ESP-IDF builds use arduino-esp32 instead of arduino dependency --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 880b1aa..ff6496c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,6 @@ cmake_minimum_required(VERSION 3.5) idf_component_register(SRCS "Adafruit_I2CDevice.cpp" "Adafruit_BusIO_Register.cpp" "Adafruit_SPIDevice.cpp" INCLUDE_DIRS "." - REQUIRES arduino) + REQUIRES arduino-esp32) project(Adafruit_BusIO) From 9eeac1d1812a7570672dcb2b2183ab70c628ca06 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Fri, 13 Dec 2024 15:48:40 +0100 Subject: [PATCH 2/4] Avoid fast pins IO on RTOS based boards Better fix than https://github.com/arduino/ArduinoCore-zephyr/pull/6/commits/80943e663f931f9d11c2c5efa67527996d5d5067 --- Adafruit_SPIDevice.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 1d1f953..54b967b 100644 --- a/Adafruit_SPIDevice.h +++ b/Adafruit_SPIDevice.h @@ -58,6 +58,11 @@ typedef BitOrder BusIOBitOrder; // typedef uint32_t BusIO_PortMask; //#define BUSIO_USE_FAST_PINIO +#elif defined(__MBED__) || defined(__ZEPHYR__) +// Boards based on RTOS cores like mbed or Zephyr are not going to expose the +// low level registers needed for fast pin manipulation +#undef BUSIO_USE_FAST_PINIO + #elif defined(ARDUINO_ARCH_XMC) #undef BUSIO_USE_FAST_PINIO @@ -73,7 +78,7 @@ typedef uint32_t BusIO_PortMask; #define BUSIO_USE_FAST_PINIO #elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \ - !defined(ARDUINO_ARCH_MBED) && !defined(ARDUINO_ARCH_RP2040) && \ + !defined(ARDUINO_ARCH_RP2040) && \ !defined(ARDUINO_SILABS) && !defined(ARDUINO_UNOR4_MINIMA) && \ !defined(ARDUINO_UNOR4_WIFI) typedef volatile uint32_t BusIO_PortReg; From c99c8564a2914684aa85aaef56024ca5b3f51e48 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 16 Dec 2024 09:41:55 +0100 Subject: [PATCH 3/4] fixup: clang-format fix --- Adafruit_SPIDevice.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 54b967b..fad0fbd 100644 --- a/Adafruit_SPIDevice.h +++ b/Adafruit_SPIDevice.h @@ -78,9 +78,8 @@ typedef uint32_t BusIO_PortMask; #define BUSIO_USE_FAST_PINIO #elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \ - !defined(ARDUINO_ARCH_RP2040) && \ - !defined(ARDUINO_SILABS) && !defined(ARDUINO_UNOR4_MINIMA) && \ - !defined(ARDUINO_UNOR4_WIFI) + !defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_SILABS) && \ + !defined(ARDUINO_UNOR4_MINIMA) && !defined(ARDUINO_UNOR4_WIFI) typedef volatile uint32_t BusIO_PortReg; typedef uint32_t BusIO_PortMask; #if !defined(__ASR6501__) && !defined(__ASR6502__) From 9eda3f46413c46bc95b0facdb6c1fde23d409510 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Tue, 7 Jan 2025 16:23:28 +0000 Subject: [PATCH 4/4] Update library.properties - bump version to 1.16.3 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index b2673fe..27e536a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit BusIO -version=1.16.2 +version=1.16.3 author=Adafruit maintainer=Adafruit sentence=This is a library for abstracting away I2C and SPI interfacing