From 8097aa568fa93b198d67994a7b10e02703e8f975 Mon Sep 17 00:00:00 2001 From: "Filies Olaf (IFAG DES TOC PSA)" Date: Mon, 11 Sep 2023 16:50:03 +0200 Subject: [PATCH 1/5] By adding two macros all Infineons XMC MCUs are now able to use the library --- Adafruit_SPIDevice.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 7a6c0f5..9335c85 100644 --- a/Adafruit_SPIDevice.h +++ b/Adafruit_SPIDevice.h @@ -22,7 +22,8 @@ typedef uint8_t SPIClass; defined(ARDUINO_AVR_ATmega4808) || defined(ARDUINO_AVR_ATmega3209) || \ defined(ARDUINO_AVR_ATmega3208) || defined(ARDUINO_AVR_ATmega1609) || \ defined(ARDUINO_AVR_ATmega1608) || defined(ARDUINO_AVR_ATmega809) || \ - defined(ARDUINO_AVR_ATmega808) || defined(ARDUINO_ARCH_ARC32) + defined(ARDUINO_AVR_ATmega808) || defined(ARDUINO_ARCH_ARC32) \ + defined(ARDUINO_ARCH_XMC) typedef enum _BitOrder { SPI_BITORDER_MSBFIRST = MSBFIRST, @@ -57,6 +58,9 @@ typedef BitOrder BusIOBitOrder; // typedef uint32_t BusIO_PortMask; //#define BUSIO_USE_FAST_PINIO +#elif defined(ARDUINO_ARCH_XMC) +#undef BUSIO_USE_FAST_PINIO + #elif defined(__AVR__) || defined(TEENSYDUINO) typedef volatile uint8_t BusIO_PortReg; typedef uint8_t BusIO_PortMask; From 5162b240d7ba2d58ca2e61257de0af3b00d6ae43 Mon Sep 17 00:00:00 2001 From: "Filies Olaf (IFAG DES TOC PSA)" Date: Mon, 11 Sep 2023 17:21:18 +0200 Subject: [PATCH 2/5] Forgot the || inthe macro list --- Adafruit_SPIDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 9335c85..74123b9 100644 --- a/Adafruit_SPIDevice.h +++ b/Adafruit_SPIDevice.h @@ -22,7 +22,7 @@ typedef uint8_t SPIClass; defined(ARDUINO_AVR_ATmega4808) || defined(ARDUINO_AVR_ATmega3209) || \ defined(ARDUINO_AVR_ATmega3208) || defined(ARDUINO_AVR_ATmega1609) || \ defined(ARDUINO_AVR_ATmega1608) || defined(ARDUINO_AVR_ATmega809) || \ - defined(ARDUINO_AVR_ATmega808) || defined(ARDUINO_ARCH_ARC32) \ + defined(ARDUINO_AVR_ATmega808) || defined(ARDUINO_ARCH_ARC32) || \ defined(ARDUINO_ARCH_XMC) typedef enum _BitOrder { From 1b7f5a95905c5ff580c77dd745279d5b45d0ab88 Mon Sep 17 00:00:00 2001 From: Luke Lowrey Date: Sat, 16 Sep 2023 00:30:41 +0100 Subject: [PATCH 3/5] Remove offensive term in comments Tidying up the language used - https://dictionary.cambridge.org/dictionary/english/spaz https://en.wiktionary.org/wiki/spaz --- Adafruit_I2CDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 9b518b4..059ddfb 100644 --- a/Adafruit_I2CDevice.cpp +++ b/Adafruit_I2CDevice.cpp @@ -23,8 +23,8 @@ Adafruit_I2CDevice::Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire) { /*! * @brief Initializes and does basic address detection * @param addr_detect Whether we should attempt to detect the I2C address - * with a scan. 99% of sensors/devices don't mind but once in a while, they spaz - * on a scan! + * with a scan. 99% of sensors/devices don't mind, but once in a while they don't + * respond well to a scan! * @return True if I2C initialized and a device with the addr found */ bool Adafruit_I2CDevice::begin(bool addr_detect) { From 9108618560a57a4cf8113231b713293028f10d29 Mon Sep 17 00:00:00 2001 From: Luke Lowrey Date: Sat, 16 Sep 2023 00:59:38 +0100 Subject: [PATCH 4/5] Fix line length --- Adafruit_I2CDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 059ddfb..57eb551 100644 --- a/Adafruit_I2CDevice.cpp +++ b/Adafruit_I2CDevice.cpp @@ -23,8 +23,8 @@ Adafruit_I2CDevice::Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire) { /*! * @brief Initializes and does basic address detection * @param addr_detect Whether we should attempt to detect the I2C address - * with a scan. 99% of sensors/devices don't mind, but once in a while they don't - * respond well to a scan! + * with a scan. 99% of sensors/devices don't mind, but once in a while they + * don't respond well to a scan! * @return True if I2C initialized and a device with the addr found */ bool Adafruit_I2CDevice::begin(bool addr_detect) { From ee0faec7ee8b34373772184d04864f04bcf56730 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Tue, 19 Sep 2023 11:39:09 +0100 Subject: [PATCH 5/5] Update library.properties - bump version to 1.14.4 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 08a2588..854fbf5 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit BusIO -version=1.14.3 +version=1.14.4 author=Adafruit maintainer=Adafruit sentence=This is a library for abstracting away UART, I2C and SPI interfacing