Merge branch 'master' of github.com:adafruit/Adafruit_BusIO
This commit is contained in:
commit
ad776484f3
|
|
@ -23,8 +23,8 @@ Adafruit_I2CDevice::Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire) {
|
||||||
/*!
|
/*!
|
||||||
* @brief Initializes and does basic address detection
|
* @brief Initializes and does basic address detection
|
||||||
* @param addr_detect Whether we should attempt to detect the I2C address
|
* @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
|
* with a scan. 99% of sensors/devices don't mind, but once in a while they
|
||||||
* on a scan!
|
* don't respond well to a scan!
|
||||||
* @return True if I2C initialized and a device with the addr found
|
* @return True if I2C initialized and a device with the addr found
|
||||||
*/
|
*/
|
||||||
bool Adafruit_I2CDevice::begin(bool addr_detect) {
|
bool Adafruit_I2CDevice::begin(bool addr_detect) {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ typedef uint8_t SPIClass;
|
||||||
defined(ARDUINO_AVR_ATmega4808) || defined(ARDUINO_AVR_ATmega3209) || \
|
defined(ARDUINO_AVR_ATmega4808) || defined(ARDUINO_AVR_ATmega3209) || \
|
||||||
defined(ARDUINO_AVR_ATmega3208) || defined(ARDUINO_AVR_ATmega1609) || \
|
defined(ARDUINO_AVR_ATmega3208) || defined(ARDUINO_AVR_ATmega1609) || \
|
||||||
defined(ARDUINO_AVR_ATmega1608) || defined(ARDUINO_AVR_ATmega809) || \
|
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 {
|
typedef enum _BitOrder {
|
||||||
SPI_BITORDER_MSBFIRST = MSBFIRST,
|
SPI_BITORDER_MSBFIRST = MSBFIRST,
|
||||||
|
|
@ -57,6 +58,9 @@ typedef BitOrder BusIOBitOrder;
|
||||||
// typedef uint32_t BusIO_PortMask;
|
// typedef uint32_t BusIO_PortMask;
|
||||||
//#define BUSIO_USE_FAST_PINIO
|
//#define BUSIO_USE_FAST_PINIO
|
||||||
|
|
||||||
|
#elif defined(ARDUINO_ARCH_XMC)
|
||||||
|
#undef BUSIO_USE_FAST_PINIO
|
||||||
|
|
||||||
#elif defined(__AVR__) || defined(TEENSYDUINO)
|
#elif defined(__AVR__) || defined(TEENSYDUINO)
|
||||||
typedef volatile uint8_t BusIO_PortReg;
|
typedef volatile uint8_t BusIO_PortReg;
|
||||||
typedef uint8_t BusIO_PortMask;
|
typedef uint8_t BusIO_PortMask;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name=Adafruit BusIO
|
name=Adafruit BusIO
|
||||||
version=1.14.3
|
version=1.14.4
|
||||||
author=Adafruit
|
author=Adafruit
|
||||||
maintainer=Adafruit <info@adafruit.com>
|
maintainer=Adafruit <info@adafruit.com>
|
||||||
sentence=This is a library for abstracting away UART, I2C and SPI interfacing
|
sentence=This is a library for abstracting away UART, I2C and SPI interfacing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue