Avoid fast pins IO on RTOS based boards

Better fix than https://github.com/arduino/ArduinoCore-zephyr/pull/6/commits/80943e663f931f9d11c2c5efa67527996d5d5067
This commit is contained in:
Martino Facchin
2024-12-13 15:54:58 +01:00
parent ddf66b491e
commit 9eeac1d181
+6 -1
View File
@@ -58,6 +58,11 @@ typedef BitOrder BusIOBitOrder;
// typedef uint32_t BusIO_PortMask;
//#define BUSIO_USE_FAST_PINIO
#elif defined(__MBED__) || defined(__ZEPHYR__)
// Boards based on RTOS cores like mbed or Zephyr are not going to expose the
// low level registers needed for fast pin manipulation
#undef BUSIO_USE_FAST_PINIO
#elif defined(ARDUINO_ARCH_XMC)
#undef BUSIO_USE_FAST_PINIO
@@ -73,7 +78,7 @@ typedef uint32_t BusIO_PortMask;
#define BUSIO_USE_FAST_PINIO
#elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \
!defined(ARDUINO_ARCH_MBED) && !defined(ARDUINO_ARCH_RP2040) && \
!defined(ARDUINO_ARCH_RP2040) && \
!defined(ARDUINO_SILABS) && !defined(ARDUINO_UNOR4_MINIMA) && \
!defined(ARDUINO_UNOR4_WIFI)
typedef volatile uint32_t BusIO_PortReg;