kopia lustrzana https://github.com/jgromes/RadioLib
Swap Arduino and Adafruit SAMD detection order
rodzic
22975cbcee
commit
2f68d38f35
|
@ -148,21 +148,6 @@
|
||||||
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
||||||
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
||||||
|
|
||||||
#elif defined(ARDUINO_ARCH_SAMD)
|
|
||||||
// Arduino SAMD (Zero, MKR, etc.)
|
|
||||||
#define RADIOLIB_PLATFORM "Arduino SAMD"
|
|
||||||
#define RADIOLIB_PIN_TYPE pin_size_t
|
|
||||||
#define RADIOLIB_PIN_MODE PinMode
|
|
||||||
#define RADIOLIB_PIN_STATUS PinStatus
|
|
||||||
#define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
|
|
||||||
#define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
|
|
||||||
#define RADIOLIB_NC (0xFF)
|
|
||||||
#define RADIOLIB_DEFAULT_SPI SPI
|
|
||||||
#define RADIOLIB_PROGMEM PROGMEM
|
|
||||||
#define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
|
|
||||||
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
|
||||||
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
|
||||||
|
|
||||||
#elif defined(SAMD_SERIES)
|
#elif defined(SAMD_SERIES)
|
||||||
// Adafruit SAMD boards (M0 and M4)
|
// Adafruit SAMD boards (M0 and M4)
|
||||||
#define RADIOLIB_PLATFORM "Adafruit SAMD"
|
#define RADIOLIB_PLATFORM "Adafruit SAMD"
|
||||||
|
@ -178,6 +163,21 @@
|
||||||
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
||||||
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
||||||
|
|
||||||
|
#elif defined(ARDUINO_ARCH_SAMD)
|
||||||
|
// Arduino SAMD (Zero, MKR, etc.)
|
||||||
|
#define RADIOLIB_PLATFORM "Arduino SAMD"
|
||||||
|
#define RADIOLIB_PIN_TYPE pin_size_t
|
||||||
|
#define RADIOLIB_PIN_MODE PinMode
|
||||||
|
#define RADIOLIB_PIN_STATUS PinStatus
|
||||||
|
#define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
|
||||||
|
#define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
|
||||||
|
#define RADIOLIB_NC (0xFF)
|
||||||
|
#define RADIOLIB_DEFAULT_SPI SPI
|
||||||
|
#define RADIOLIB_PROGMEM PROGMEM
|
||||||
|
#define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
|
||||||
|
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
|
||||||
|
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
||||||
|
|
||||||
#elif defined(__SAM3X8E__)
|
#elif defined(__SAM3X8E__)
|
||||||
// Arduino Due
|
// Arduino Due
|
||||||
#define RADIOLIB_PLATFORM "Arduino Due"
|
#define RADIOLIB_PLATFORM "Arduino Due"
|
||||||
|
|
Ładowanie…
Reference in New Issue