Skip to content

Commit

Permalink
Merge pull request #266 from RTduino-libraries/master
Browse files Browse the repository at this point in the history
add ARDUINO_ARCH_RTTHREAD to support RT-Thread
  • Loading branch information
ladyada authored Oct 7, 2024
2 parents 14a4563 + 95fef51 commit 16ee8a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_SSD1306.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions Adafruit_SSD1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 -->

0 comments on commit 16ee8a2

Please sign in to comment.