mirror of
https://github.com/thelsing/knx.git
synced 2024-10-20 20:07:45 +02:00
d90843ba45
* Initial commit * Clean up * Remove display code * Change cmake build * Add SimpleLink SDK for CC13xx/CC26xx as submodule * Remove commented line from build.sh * Working build * Remove SDK submodule * Squashed 'examples/knx-cc1310/coresdk_cc13xx_cc26xx/' content from commit 0d78d32 git-subtree-dir: examples/knx-cc1310/coresdk_cc13xx_cc26xx git-subtree-split: 0d78d3280357416a5c0388148cda13717c9ffaa5 * Add more comments and enable Power_idleFunc() for NoRTOS variant. Internal SDK driver functions which have to wait for something will cause Power_idleFunc to be called instead of doing busy wait. * Move CC1310 platform init around * Optimize a bit more in debug build config as the binary does not fit into 128Kb flash otherwise. * Explicitly list each source/header file in build config. Use linker group to resolve circular dependencies. * Ignore vscode settings.json * Increase stacks size * Only compile CC1310 source code if #define DeviceFamily_CC13X0 * initial commit of CC1310 RF driver with first working RX version * Better handling of buttonUp() across platforms * Start cleanup * continue cleanup * Fix bau2920 compilation * Continue cleanup * Fix compilation in other examples * Fix compilation * htons() and ntohs() only for SAMD and STM32, but not for Linux and ESP8266 and ESP32 * htons(9 and ntohs() needed for CC13x0 * Continue cleanup * Add CC1310 platform to CI * Fix CI * Use more recent toolchain from ARM * Fix travis * Use Ubuntu Focal * Fix toolchain for travis * Fix package name * Fix toolchain * Add libstdc++-dev package * Add newlib packages * Remove commented commands from CI * Fix travis * Fix compilation of knxPython * Clean up linefeeds * Fix RX callback * Move RF CRC16-DNP to bits.cpp * Fix TX * Optimization: do not calc CRC for block1 again in rf_data_link_layer * Make newline optional in printHex * Cleanup. First working version: ETS5 programming of individual address via KNX/RF coupler. * Use LEDs and Buttons to control ProgMode and Flash Erase * Remove settings.json (VScode) * Add README.md * Update README.md * Update README.md * Fix typo
103 lines
2.6 KiB
YAML
103 lines
2.6 KiB
YAML
matrix:
|
|
include:
|
|
# Test build for Linux platform
|
|
- language: cpp
|
|
dist: focal
|
|
os: linux
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-7
|
|
- python3.8
|
|
env:
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
|
cache:
|
|
directories:
|
|
git:
|
|
depth: false
|
|
quiet: true
|
|
|
|
before_install:
|
|
- eval "${MATRIX_EVAL}"
|
|
|
|
install:
|
|
|
|
script:
|
|
- mkdir -p build
|
|
- cd build
|
|
- cmake ..
|
|
- cmake --build .
|
|
|
|
# Test build for CC13x0 platform
|
|
- language: cpp
|
|
dist: focal
|
|
os: linux
|
|
addons:
|
|
apt:
|
|
sources:
|
|
packages:
|
|
- cmake
|
|
- binutils-arm-none-eabi
|
|
- gcc-arm-none-eabi
|
|
- libnewlib-arm-none-eabi
|
|
- libstdc++-arm-none-eabi-newlib
|
|
env:
|
|
- MATRIX_EVAL="CC=arm-none-eabi-gcc && CXX=arm-none-eabi-g++"
|
|
cache:
|
|
directories:
|
|
git:
|
|
depth: false
|
|
quiet: true
|
|
|
|
before_install:
|
|
- eval "${MATRIX_EVAL}"
|
|
|
|
install:
|
|
|
|
before_script:
|
|
- arm-none-eabi-gcc --version
|
|
|
|
script:
|
|
- echo "building knx-cc1310"
|
|
- cd examples/knx-cc1310
|
|
- mkdir -p build
|
|
- cd build
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
- cmake --build .
|
|
|
|
# Test build for PlatformIO based projects
|
|
- language: python
|
|
python:
|
|
- "3.8"
|
|
cache:
|
|
directories:
|
|
- "~/.platformio"
|
|
env:
|
|
- PLATFORMIO_EXTRA_SCRIPTS=pre:/tmp/scripts/custom_hwids.py
|
|
install:
|
|
- pip install -U platformio
|
|
- platformio update
|
|
script:
|
|
# PRE scripts have to be copied manually as "platformio ci does not care about it"
|
|
- mkdir -p /tmp/scripts
|
|
- cp examples/knx-usb/custom_hwids.py /tmp/scripts
|
|
|
|
# Enable verbose output of platformio
|
|
#- platformio settings set force_verbose yes
|
|
|
|
- echo "-------";echo "Compiling example knx-usb";echo "--------";
|
|
- platformio ci --lib="." --project-conf=examples/knx-usb/platformio-ci.ini examples/knx-usb/src/main.cpp
|
|
|
|
- echo "-------";echo "Compiling example knx-demo";echo "--------";
|
|
- platformio ci --lib="." --project-conf=examples/knx-demo/platformio-ci.ini examples/knx-demo/knx-demo.ino
|
|
|
|
- echo "-------";echo "Compiling example knx-demo-coupler";echo "--------";
|
|
- platformio ci --lib="." --project-conf=examples/knx-demo-coupler/platformio-ci.ini examples/knx-demo-coupler/knx-demo-coupler.ino
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: change
|