Add PORTDUINO check to Adafruit_SPIDevice.h

The PORTDUINO target on ARMv7 was triggering the defined(__arm__) code block, and failing compilation as a result. Quick fix to check for PORTDUINO.
This commit is contained in:
Jonathan Bennett 2025-04-26 09:34:15 -05:00 committed by GitHub
parent 055013b58d
commit 18a22e98ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ typedef uint32_t BusIO_PortMask;
#elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \
!defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_SILABS) && \
!defined(ARDUINO_UNOR4_MINIMA) && !defined(ARDUINO_UNOR4_WIFI)
!defined(ARDUINO_UNOR4_MINIMA) && !defined(ARDUINO_UNOR4_WIFI) && !defined(PORTDUINO)
typedef volatile uint32_t BusIO_PortReg;
typedef uint32_t BusIO_PortMask;
#if !defined(__ASR6501__) && !defined(__ASR6502__)