Skip to content

Commit

Permalink
platformio update
Browse files Browse the repository at this point in the history
  • Loading branch information
SmejkalJakub committed Oct 13, 2021
1 parent a9d3e1f commit 5ed17dc
Show file tree
Hide file tree
Showing 7 changed files with 212 additions and 186 deletions.
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/obj/
/out/
.cproject
.project
stm32_flash.ld
Debug/
.settings/
obj/
out/
.gitmodules
.DS_Store
firmware.bin
.pio/
.vscode/
42 changes: 18 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
dist: trusty

language: c

addons:
apt:
sources:
- sourceline: 'ppa:team-gcc-arm-embedded/ppa'
packages:
- gcc-arm-embedded

script: ./build.sh

language: python
env:
- VERSION=${TRAVIS_TAG:-vdev}
install:
- pip install -U platformio
script:
- export PLATFORMIO_BUILD_FLAGS="-D'VERSION=\"${VERSION}\"'"
- pio run -e release
- mv .pio/build/release/firmware.bin twr-skeleton-${VERSION}.bin
- ls -lha
deploy:
skip_cleanup: true
file_glob: true
file: "out/release/*.bin"
api_key: "${GITHUB_KEY}"
provider: releases
overwrite: true
on:
tags: true

notifications:
email: false
skip_cleanup: true
file_glob: true
file: ./*.bin
api_key: ${GITHUB_KEY}
provider: releases
overwrite: true
on:
tags: true
154 changes: 0 additions & 154 deletions app/application.c

This file was deleted.

2 changes: 2 additions & 0 deletions app/application.h → include/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
#define _APPLICATION_H

#include <bcl.h>
#include <twr.h>


#endif // _APPLICATION_H
31 changes: 31 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = debug

[env]
platform = hardwario-tower
board = core_module
framework = stm32cube
lib_deps = twr-sdk
monitor_speed = 115200
monitor_filters = default, send_on_enter
monitor_flags = --echo

[env:debug]
upload_protocol = serial

[env:release]
upload_protocol = serial
build_flags =
${env.build_flags}
-D RELEASE

[env:debug-jlink]
build_type = debug
upload_protocol = jlink
debug_init_break = tbreak application_init
debug_svd_path = .pio/libdeps/debug/twr-sdk/sys/svd/stm32l0x3.svd
build_flags =
${env.build_flags}
-D DEBUG
1 change: 0 additions & 1 deletion sdk
Submodule sdk deleted from e4a762
Loading

0 comments on commit 5ed17dc

Please sign in to comment.