add ARDUINO_ARCH_RTTHREAD to support RT-Thread

This commit is contained in:
Meco Man
2024-10-06 12:06:40 -04:00
parent 14a4563e10
commit 95fef51c89
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
*
*/
#ifdef __AVR__
#if defined(__AVR__) || defined(ARDUINO_ARCH_RTTHREAD)
#include <avr/pgmspace.h>
#elif defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040)
#include <pgmspace.h>
+2
View File
@@ -51,6 +51,8 @@ typedef uint8_t PortMask;
typedef volatile RwReg PortReg;
typedef uint32_t PortMask;
#define HAVE_PORTREG
#elif defined(ARDUINO_ARCH_RTTHREAD)
#undef HAVE_PORTREG
#elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \
!defined(ARDUINO_ARCH_MBED) && !defined(ARDUINO_ARCH_RP2040)
typedef volatile uint32_t PortReg;
+2
View File
@@ -51,6 +51,7 @@ Intel Curie | X | | |
WICED | X | | | No hardware SPI - bitbang only
ATtiny85 | | X | |
Particle | X | | |
RTduino | X | | |
* ATmega328 : Arduino UNO, Adafruit Pro Trinket, Adafruit Metro 328, Adafruit Metro Mini
* ATmega32u4 : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0, Adafruit Flora, Bluefruit Micro
@@ -60,5 +61,6 @@ Particle | X | | |
* ATSAMD21 : Arduino Zero, M0 Pro, Adafruit Metro Express, Feather M0
* ATtiny85 : Adafruit Gemma, Arduino Gemma, Adafruit Trinket
* Particle: Particle Argon
* RTduino : [RTduino](https://github.com/RTduino/RTduino) is the Arduino ecosystem compatibility layer for [RT-Thread RTOS](https://github.com/RT-Thread/rt-thread) BSPs
<!-- END COMPATIBILITY TABLE -->