File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ typedef BitOrder BusIOBitOrder;
5858// typedef uint32_t BusIO_PortMask;
5959// #define BUSIO_USE_FAST_PINIO
6060
61+ #elif defined(__MBED__) || defined(__ZEPHYR__)
62+ // Boards based on RTOS cores like mbed or Zephyr are not going to expose the
63+ // low level registers needed for fast pin manipulation
64+ #undef BUSIO_USE_FAST_PINIO
65+
6166#elif defined(ARDUINO_ARCH_XMC)
6267#undef BUSIO_USE_FAST_PINIO
6368
@@ -73,9 +78,8 @@ typedef uint32_t BusIO_PortMask;
7378#define BUSIO_USE_FAST_PINIO
7479
7580#elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \
76- !defined (ARDUINO_ARCH_MBED) && !defined (ARDUINO_ARCH_RP2040) && \
77- !defined (ARDUINO_SILABS) && !defined (ARDUINO_UNOR4_MINIMA) && \
78- !defined (ARDUINO_UNOR4_WIFI)
81+ !defined (ARDUINO_ARCH_RP2040) && !defined (ARDUINO_SILABS) && \
82+ !defined (ARDUINO_UNOR4_MINIMA) && !defined (ARDUINO_UNOR4_WIFI)
7983typedef volatile uint32_t BusIO_PortReg;
8084typedef uint32_t BusIO_PortMask;
8185#if !defined(__ASR6501__) && !defined(__ASR6502__)
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ cmake_minimum_required(VERSION 3.5)
66
77idf_component_register(SRCS "Adafruit_I2CDevice.cpp" "Adafruit_BusIO_Register.cpp" "Adafruit_SPIDevice.cpp"
88 INCLUDE_DIRS "."
9- REQUIRES arduino)
9+ REQUIRES arduino-esp32 )
1010
1111project (Adafruit_BusIO)
You can’t perform that action at this time.
0 commit comments