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;
58
58
// typedef uint32_t BusIO_PortMask;
59
59
// #define BUSIO_USE_FAST_PINIO
60
60
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
+
61
66
#elif defined(ARDUINO_ARCH_XMC)
62
67
#undef BUSIO_USE_FAST_PINIO
63
68
@@ -73,9 +78,8 @@ typedef uint32_t BusIO_PortMask;
73
78
#define BUSIO_USE_FAST_PINIO
74
79
75
80
#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)
79
83
typedef volatile uint32_t BusIO_PortReg;
80
84
typedef uint32_t BusIO_PortMask;
81
85
#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)
6
6
7
7
idf_component_register (SRCS "Adafruit_I2CDevice.cpp" "Adafruit_BusIO_Register.cpp" "Adafruit_SPIDevice.cpp"
8
8
INCLUDE_DIRS "."
9
- REQUIRES arduino )
9
+ REQUIRES arduino-esp32 )
10
10
11
11
project (Adafruit_BusIO )
You can’t perform that action at this time.
0 commit comments