kopia lustrzana https://github.com/jgromes/RadioLib
Added support for Arduino Due
rodzic
f0d9fdda11
commit
c57d7d9045
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue