Added support for Arduino Due

pull/64/head
jgromes 2019-10-27 17:18:37 +01:00
rodzic f0d9fdda11
commit c57d7d9045
4 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ env:
- BOARD="STM32:stm32:GenF1:pnum=BLUEPILL_F103C6"
- BOARD="esp8266:esp8266:generic:xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K"
- BOARD="arduino:samd:arduino_zero_native"
- BOARD="arduino:sam:arduino_due_x"
- BOARD="arduino:avr:uno"
- BOARD="arduino:avr:leonardo"
- BOARD="arduino:avr:mega:cpu=atmega2560"
@ -38,6 +39,8 @@ before_install:
arduino --install-boards STM32:stm32;
elif [[ "$BOARD" =~ "arduino:samd:" ]]; then
arduino --install-boards arduino:samd;
elif [[ "$BOARD" =~ "arduino:sam:" ]]; then
arduino --install-boards arduino:sam;
fi
# create directory to save the library and create symbolic link

Wyświetl plik

@ -34,8 +34,9 @@ RadioLib was originally created as a driver for [__RadioShield__](https://github
* __Arduino AVR boards__ - tested on Uno, Mega and Leonardo
* __ESP8266 boards__ - NodeMCU, Wemos D1, etc.
* __ESP32 boards__ - tested on ESP-WROOM-32
* __STM32 boards__ - tested on BluePill F103C8, STM32VL-Discovery F100RB (with [custom definitions](https://github.com/stm32duino/wiki/wiki/Custom-definitions) in variant.h)
* __STM32 boards__ - tested on Nucleo L452RE-P
* __SAMD boards__ - Arduino Zero
* __SAM boards__ - Arduino Due
### In development:
* __SIM800C__ GSM module

Wyświetl plik

@ -9,7 +9,7 @@ void ISerial::begin(long speed) {
}
bool ISerial::listen() {
#if defined ( ESP32 ) || defined (SAMD_SERIES) || defined (ARDUINO_ARCH_STM32)
#ifdef SOFTWARE_SERIAL_UNSUPPORTED
return true;
#else
return(_mod->ModuleSerial->listen());
@ -21,7 +21,7 @@ void ISerial::end() {
}
bool ISerial::isListening() {
#if defined( ESP32 ) || defined ( SAMD_SERIES ) || defined (ARDUINO_ARCH_STM32)
#ifdef SOFTWARE_SERIAL_UNSUPPORTED
return true;
#else
return(_mod->ModuleSerial->isListening());
@ -29,7 +29,7 @@ bool ISerial::isListening() {
}
bool ISerial::stopListening() {
#if defined( ESP32 ) || defined ( SAMD_SERIES ) || defined (ARDUINO_ARCH_STM32)
#ifdef SOFTWARE_SERIAL_UNSUPPORTED
return true;
#else
return(_mod->ModuleSerial->stopListening());
@ -37,7 +37,7 @@ bool ISerial::stopListening() {
}
bool ISerial::overflow() {
#if defined( ESP32 ) || defined ( SAMD_SERIES ) || defined (ARDUINO_ARCH_STM32)
#ifdef SOFTWARE_SERIAL_UNSUPPORTED
return false;
#else
return(_mod->ModuleSerial->overflow());

Wyświetl plik

@ -8,7 +8,7 @@
#endif
// the following platforms do not support SoftwareSerial library
#if defined(ESP32) || defined(SAMD_SERIES) || defined(ARDUINO_ARCH_STM32)
#if defined(ESP32) || defined(SAMD_SERIES) || defined(ARDUINO_ARCH_STM32) || defined(__SAM3X8E__)
#define SOFTWARE_SERIAL_UNSUPPORTED
#endif