Added support for Adafruit SAMD boards
This commit is contained in:
parent
0c4f449181
commit
9798de6272
3 changed files with 9 additions and 2 deletions
|
@ -18,6 +18,7 @@ env:
|
||||||
- BOARD="SparkFun:apollo3:amap3redboard"
|
- BOARD="SparkFun:apollo3:amap3redboard"
|
||||||
- BOARD="arduino:mbed:nano33ble"
|
- BOARD="arduino:mbed:nano33ble"
|
||||||
- BOARD="stm32duino:STM32F1:mapleMini:bootloader_version=original,cpu_speed=speed_72mhz"
|
- BOARD="stm32duino:STM32F1:mapleMini:bootloader_version=original,cpu_speed=speed_72mhz"
|
||||||
|
- BOARD="adafruit:samd:adafruit_feather_m0:usbstack=arduino,debug=off"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -105,6 +106,11 @@ before_install:
|
||||||
arduino --pref "boardsmanager.additional.urls=http://dan.drown.org/stm32duino/package_STM32duino_index.json" --save-prefs 2>&1;
|
arduino --pref "boardsmanager.additional.urls=http://dan.drown.org/stm32duino/package_STM32duino_index.json" --save-prefs 2>&1;
|
||||||
arduino --install-boards stm32duino:STM32F1;
|
arduino --install-boards stm32duino:STM32F1;
|
||||||
|
|
||||||
|
elif [[ "$BOARD" =~ "adafruit:samd:" ]]; then
|
||||||
|
export BUILD_EXAMPLES=true;
|
||||||
|
arduino --pref "boardsmanager.additional.urls=https://www.adafruit.com/package_adafruit_index.json" --save-prefs 2>&1;
|
||||||
|
arduino --install-boards adafruit:samd;
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if this release commit (or forced build) and if so, build for every board
|
# check if this release commit (or forced build) and if so, build for every board
|
||||||
|
|
|
@ -52,6 +52,7 @@ SX127x, RFM9x, SX126x, RF69, SX1231, CC1101, nRF24L01, RFM2x, Si443x and SX128x
|
||||||
* [__SAMD__](https://github.com/arduino/ArduinoCore-samd) - Arduino Zero, MKR boards, M0 Pro etc.
|
* [__SAMD__](https://github.com/arduino/ArduinoCore-samd) - Arduino Zero, MKR boards, M0 Pro etc.
|
||||||
|
|
||||||
* __Adafruit__
|
* __Adafruit__
|
||||||
|
* [__SAMD__](https://github.com/adafruit/ArduinoCore-samd) - Adafruit Feather M0 and M4 boards (Feather, Metro, Gemma, Trinket etc.)
|
||||||
* [__nRF52__](https://github.com/adafruit/Adafruit_nRF52_Arduino) - Adafruit Feather nRF528x, Bluefruit and CLUE
|
* [__nRF52__](https://github.com/adafruit/Adafruit_nRF52_Arduino) - Adafruit Feather nRF528x, Bluefruit and CLUE
|
||||||
|
|
||||||
* __Espressif__
|
* __Espressif__
|
||||||
|
|
|
@ -84,8 +84,8 @@
|
||||||
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
|
||||||
|
|
||||||
#elif defined(SAMD_SERIES)
|
#elif defined(SAMD_SERIES)
|
||||||
// Arduino SAMD boards - Zero, MKR, etc.
|
// Arduino SAMD (Zero, MKR, etc.) and Adafruit SAMD boards (M0 and M4)
|
||||||
#define RADIOLIB_PLATFORM "Arduino SAMD"
|
#define RADIOLIB_PLATFORM "Arduino/Adafruit SAMD"
|
||||||
#define RADIOLIB_PIN_TYPE uint32_t
|
#define RADIOLIB_PIN_TYPE uint32_t
|
||||||
#define RADIOLIB_PIN_MODE uint32_t
|
#define RADIOLIB_PIN_MODE uint32_t
|
||||||
#define RADIOLIB_PIN_STATUS uint32_t
|
#define RADIOLIB_PIN_STATUS uint32_t
|
||||||
|
|
Loading…
Add table
Reference in a new issue