diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 8c25441..5b7bd60 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) { diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 7a6c0f5..74123b9 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; 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