-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 12b9ae9
Showing
1,109 changed files
with
430,499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.md text | ||
*.c text | ||
*.h text | ||
*.cc text | ||
*.S text | ||
*.s text | ||
*.hex -crlf -diff | ||
*.elf -crlf -diff | ||
*.ld text | ||
Makefile text | ||
*.bat eol=crlf | ||
*.txt text | ||
*.sh text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*.o | ||
.DS_Store | ||
*~ | ||
*.uvopt | ||
*.dep | ||
*.bak | ||
*.uvgui.* | ||
.project | ||
.settings | ||
.cproject | ||
obj/ | ||
patches/ | ||
startup_stm32f10x_md_gcc.s | ||
.vagrant/ | ||
|
||
# script-generated files | ||
docs/Manual.pdf | ||
README.pdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash | ||
|
||
REVISION=$(git rev-parse --short HEAD) | ||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
REVISION=$(git rev-parse --short HEAD) | ||
LAST_COMMIT_DATE=$(git log -1 --date=short --format="%cd") | ||
TARGET_FILE=obj/cleanflight_${TARGET} | ||
TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/undefined} | ||
BUILDNAME=${BUILDNAME:=travis} | ||
TRAVIS_BUILD_NUMBER=${TRAVIS_BUILD_NUMBER:=undefined} | ||
|
||
CURL_BASEOPTS=( | ||
"--retry" "10" | ||
"--retry-max-time" "120" ) | ||
|
||
CURL_PUB_BASEOPTS=( | ||
"--form" "revision=${REVISION}" | ||
"--form" "branch=${BRANCH}" | ||
"--form" "travis_build_number=${TRAVIS_BUILD_NUMBER}" | ||
"--form" "last_commit_date=${LAST_COMMIT_DATE}" | ||
"--form" "github_repo=${TRAVIS_REPO_SLUG}" | ||
"--form" "build_name=${BUILDNAME}" ) | ||
|
||
# A hacky way of running the unit tests at the same time as the normal builds. | ||
if [ $RUNTESTS ] ; then | ||
cd ./src/test && make test | ||
|
||
# A hacky way of building the docs at the same time as the normal builds. | ||
elif [ $PUBLISHDOCS ] ; then | ||
if [ $PUBLISH_URL ] ; then | ||
|
||
# Patch Gimli to fix underscores_inside_words | ||
curl -L "${CURL_BASEOPTS[@]}" https://github.com/walle/gimli/archive/v0.5.9.tar.gz | tar zxf - | ||
|
||
sed -i 's/).render(/, :no_intra_emphasis => true).render(/' gimli-0.5.9/ext/github_markup.rb | ||
|
||
cd gimli-0.5.9/ | ||
gem build gimli.gemspec && gem install gimli | ||
cd ../ | ||
|
||
./build_docs.sh | ||
|
||
curl -k "${CURL_BASEOPTS[@]}" "${CURL_PUB_BASEOPTS[@]}" --form "manual=@docs/Manual.pdf" ${PUBLISH_URL} || true | ||
fi | ||
|
||
elif [ $PUBLISHMETA ] ; then | ||
if [ $PUBLISH_URL ] ; then | ||
RECENT_COMMITS=$(git shortlog -n25) | ||
curl -k "${CURL_BASEOPTS[@]}" "${CURL_PUB_BASEOPTS[@]}" --form "recent_commits=${RECENT_COMMITS}" ${PUBLISH_URL} || true | ||
fi | ||
|
||
else | ||
if [ $PUBLISH_URL ] ; then | ||
make -j2 | ||
if [ -f ${TARGET_FILE}.bin ] ; then | ||
TARGET_FILE=${TARGET_FILE}.bin | ||
elif [ -f ${TARGET_FILE}.hex ] ; then | ||
TARGET_FILE=${TARGET_FILE}.hex | ||
else | ||
echo "build artifact (hex or bin) for ${TARGET_FILE} not found, aborting"; | ||
exit 1 | ||
fi | ||
|
||
curl -k "${CURL_BASEOPTS[@]}" "${CURL_PUB_BASEOPTS[@]}" --form "file=@${TARGET_FILE}" ${PUBLISH_URL} || true | ||
exit 0; | ||
else | ||
make -j2 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
env: | ||
- RUNTESTS=True | ||
- PUBLISHMETA=True | ||
- PUBLISHDOCS=True | ||
- TARGET=CC3D | ||
- TARGET=COLIBRI_RACE | ||
- TARGET=CHEBUZZF3 | ||
- TARGET=CJMCU | ||
- TARGET=EUSTM32F103RC | ||
- TARGET=SPRACINGF3 | ||
- TARGET=MOTOLAB | ||
- TARGET=NAZE | ||
- TARGET=NAZE32PRO | ||
- TARGET=OLIMEXINO | ||
- TARGET=RMDO | ||
- TARGET=PORT103R | ||
- TARGET=SPARKY | ||
- TARGET=STM32F3DISCOVERY | ||
- TARGET=ALIENWIIF1 | ||
- TARGET=ALIENWIIF3 | ||
|
||
# use new docker environment | ||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- build-essential | ||
- git | ||
- libc6-i386 | ||
- zlib1g-dev | ||
- libssl-dev | ||
- wkhtmltopdf | ||
- libxml2-dev | ||
- libxslt-dev | ||
|
||
# We use cpp for unit tests, and c for the main project. | ||
language: cpp | ||
compiler: clang | ||
|
||
before_install: | ||
- curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q2-update/+download/gcc-arm-none-eabi-4_9-2015q2-20150609-linux.tar.bz2" | tar xfj - | ||
|
||
install: | ||
- export PATH=$PATH:$PWD/gcc-arm-none-eabi-4_9-2015q2/bin | ||
|
||
before_script: arm-none-eabi-gcc --version | ||
script: ./.travis.sh | ||
|
||
cache: apt | ||
|
||
notifications: | ||
irc: "chat.freenode.net#cleanflight" | ||
use_notice: true | ||
skip_join: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Issues and Support. | ||
|
||
Please remember the issue tracker on github is _not_ for user support. Please also do not email developers directly for support. Instead please use IRC or the forums first, then if the problem is confirmed create an issue that details how to repeat the problem so it can be investigated. | ||
|
||
Issues created without steps to repeat are likely to be closed. E-mail requests for support will go un-answered; All support needs to be public so that other people can read the problems and solutions. | ||
|
||
Remember that issues that are due to mis-configuration, wiring or failure to read documentation just takes time away from the developers and can often be solved without developer interaction by other users. | ||
|
||
Please search for existing issues *before* creating new ones. | ||
|
||
# Developers | ||
|
||
Please refer to the development section in the `docs/development` folder. | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[BREAKPOINTS] | ||
ShowInfoWin = 1 | ||
EnableFlashBP = 2 | ||
BPDuringExecution = 0 | ||
[CFI] | ||
CFISize = 0x00 | ||
CFIAddr = 0x00 | ||
[CPU] | ||
OverrideMemMap = 0 | ||
AllowSimulation = 1 | ||
ScriptFile="" | ||
[FLASH] | ||
MinNumBytesFlashDL = 0 | ||
SkipProgOnCRCMatch = 1 | ||
VerifyDownload = 1 | ||
AllowCaching = 1 | ||
EnableFlashDL = 2 | ||
Override = 0 | ||
Device="AD7160" | ||
[GENERAL] | ||
WorkRAMSize = 0x00 | ||
WorkRAMAddr = 0x00 | ||
[SWO] | ||
SWOLogFile="" | ||
[MEM] | ||
RdOverrideOrMask = 0x00 | ||
RdOverrideAndMask = 0xFFFFFFFF | ||
RdOverrideAddr = 0xFFFFFFFF | ||
WrOverrideOrMask = 0x00 | ||
WrOverrideAndMask = 0xFFFFFFFF | ||
WrOverrideAddr = 0xFFFFFFFF |
Oops, something went wrong.