Added support for Roger Clark's STM32duino core TRAVIS_FORCE_BUILD

This commit is contained in:
jgromes 2020-04-22 15:00:44 +02:00
parent 332a981c23
commit 26ff33a8ac
2 changed files with 24 additions and 0 deletions

View file

@ -17,10 +17,13 @@ env:
- BOARD="arduino:megaavr:uno2018:mode=on"
- BOARD="SparkFun:apollo3:amap3redboard"
- BOARD="arduino:mbed:nano33ble"
- BOARD="stm32duino:STM32F1:mapleMini"
#- BOARD="stm32duino:STM32F4:discovery_f407"
addons:
apt:
packages:
# required for Adafruit nRF52 (adafruit-nrfutil package)
- python3
- python3-pip
- python3-setuptools
@ -98,6 +101,16 @@ before_install:
arduino --install-boards arduino:mbed;
export SKIP_PAT='(HTTP|MQTT).*ino';
elif [[ "$BOARD" =~ "stm32duino:STM32F1:" ]]; then
export BUILD_EXAMPLES=false;
arduino --pref "boardsmanager.additional.urls=http://dan.drown.org/stm32duino/package_STM32duino_index.json" --save-prefs 2>&1;
arduino --install-boards stm32duino:STM32F1;
elif [[ "$BOARD" =~ "stm32duino:STM32F4:" ]]; then
export BUILD_EXAMPLES=false;
arduino --pref "boardsmanager.additional.urls=http://dan.drown.org/stm32duino/package_STM32duino_index.json" --save-prefs 2>&1;
arduino --install-boards stm32duino:STM32F4;
fi
# check if this release commit (or forced build) and if so, build for every board

View file

@ -138,6 +138,17 @@
// Nano 33 BLE uses mbed libraries, which already contain ESP8266 driver
#define _RADIOLIB_ESP8266_H
#elif defined(__STM32F4__) || defined(__STM32F1__)
// Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
#define RADIOLIB_PLATFORM "STM32duino (unofficial)"
#define RADIOLIB_PIN_TYPE uint8_t
#define RADIOLIB_PIN_MODE WiringPinMode
#define RADIOLIB_PIN_STATUS uint8_t
#define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode
#define RADIOLIB_NC (0xFF)
#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
#else
// other platforms not covered by the above list - this may or may not work
#define RADIOLIB_PLATFORM "Unknown"