Compare commits
18 Commits
openi6x-2.1.0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f54870f051 | |||
| 329650ad77 | |||
| b6a7584509 | |||
| 96c3350bbb | |||
| 790e049572 | |||
| 94ab2711d6 | |||
| 43034b5005 | |||
| 17aca630ed | |||
| d22d831a99 | |||
| 6cff24d37a | |||
| 4b8935b039 | |||
| e8b26e0613 | |||
| 78501ead38 | |||
| d019ce803b | |||
| 713e06bf6c | |||
| 318141863a | |||
| eba65dc5d9 | |||
| cee82b9e8b |
@@ -0,0 +1,7 @@
|
||||
# .gitpod.yml
|
||||
image:
|
||||
file: Dockerfile
|
||||
|
||||
tasks:
|
||||
- init: echo 'Welcome!'
|
||||
- command: mkdir build && cd build
|
||||
+1
-1
@@ -43,7 +43,7 @@ today(DATE)
|
||||
now(TIME)
|
||||
git_id(GIT_STR)
|
||||
|
||||
message(STATUS "OpenTX ${VERSION} @${GIT_STR}")
|
||||
message(STATUS "OpenI6X ${VERSION} @${GIT_STR}")
|
||||
|
||||
# options shared by all targets
|
||||
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
# Dockerfile
|
||||
FROM archlinux:base
|
||||
RUN pacman -Syu --noconfirm
|
||||
|
||||
# Install misc packages
|
||||
RUN pacman -S --noconfirm \
|
||||
7zip \
|
||||
arm-none-eabi-gcc \
|
||||
arm-none-eabi-newlib \
|
||||
base-devel \
|
||||
bc \
|
||||
cmake \
|
||||
cpio \
|
||||
curl \
|
||||
dos2unix \
|
||||
erofs-utils \
|
||||
git \
|
||||
less \
|
||||
nano \
|
||||
python \
|
||||
python-pip \
|
||||
python-pilkit \
|
||||
screen \
|
||||
tree \
|
||||
unzip \
|
||||
vim \
|
||||
wget \
|
||||
zip
|
||||
|
||||
# HACK: Allow base-devel to run with root user
|
||||
RUN sed -i '/E_ROOT/d' /usr/bin/makepkg
|
||||
|
||||
# Install yay
|
||||
RUN git clone https://aur.archlinux.org/yay-bin.git /tmp/yay-bin && \
|
||||
cd /tmp/yay-bin && \
|
||||
makepkg -si --noconfirm && \
|
||||
cd && rm -rf /tmp/yay-bin
|
||||
|
||||
#RUN git clone --recursive https://github.com/STMicroelectronics/STM32CubeG0.git /workspace/STM32CubeG0
|
||||
#RUN git clone --recursive https://github.com/STMicroelectronics/STM32CubeG4.git /workspace/STM32CubeG4
|
||||
|
||||
# Personal dir dotfiles
|
||||
#ADD home /home/
|
||||
|
||||
# Personal uploader scripts
|
||||
#ADD root/bin /usr/local/bin/
|
||||
@@ -1,6 +1,8 @@
|
||||

|
||||
[](https://github.com/OpenI6X/opentx/releases/latest)
|
||||
[](https://github.com/OpenI6X/opentx/releases)
|
||||
[](https://github.com/openi6x/opentx/blob/master/LICENSE)
|
||||

|
||||
[](https://gitpod.io/#https://github.com/openi6x/opentx/tree/master)
|
||||
[](https://discord.gg/3vKfYNTVa2)
|
||||
|
||||

|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
@@ -1 +0,0 @@
|
||||
/settings.sh
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# in this file define ssh options (like private key)
|
||||
source ~/.opentx-jenkins-settings
|
||||
|
||||
function download() {
|
||||
# $1 is release directory name
|
||||
mkdir -p ${1}
|
||||
scp ${SCP_OPT} ${USERNAME}@jenkins.open-tx.org:/home/opentx/${1}/*.sh ${1}/
|
||||
#chmod 774 ${1}/*.sh
|
||||
}
|
||||
|
||||
download release-20
|
||||
download nightly-21
|
||||
download release-21
|
||||
download nightly-22
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
source ./version.sh
|
||||
|
||||
# release all components
|
||||
./release-companion.sh
|
||||
./release-firmware.sh
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/nightly/companion
|
||||
|
||||
# clean radio source
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
# create companion rpm
|
||||
rm -rf ${DIR}/companion-build/
|
||||
mkdir -p ${DIR}/companion-build/
|
||||
cd ${DIR}/companion-build/
|
||||
cmake ../opentx/companion/src
|
||||
make package
|
||||
cp ./companion${version}-${release}${OPENTX_VERSION_SUFFIX}-i686.rpm ${DESTDIR}
|
||||
|
||||
make stamp
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
# request companion compilation on Windows
|
||||
cd ${DESTDIR}
|
||||
wget -qO- http://winbox.open-tx.org/companion-builds/compile21.php?branch=${branch}\&suffix=${OPENTX_VERSION_SUFFIX}
|
||||
wget -O companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe
|
||||
mv ${DIR}/opentx/companion/companion.stamp ./companion-windows.stamp
|
||||
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
# make the stamp
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
make opentx-stamp
|
||||
|
||||
# create the sources tgz in the release directory
|
||||
cd ../../..
|
||||
tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
|
||||
|
||||
# make lua fields for all radio variants
|
||||
cd opentx/radio/src
|
||||
make lua_exports_taranis.inc lua_exports_taranis_x9e.inc
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/nightly/firmware
|
||||
|
||||
# copy the stamp and the release-notes to the http server
|
||||
cd ${DIR}
|
||||
cp opentx/radio/src/stamp-opentx.txt ${DESTDIR}
|
||||
cp opentx/radio/releasenotes.txt ${DESTDIR}
|
||||
cp opentx/radio/src/lua_fields_*.txt ${DESTDIR}
|
||||
echo ${OPENTX_VERSION_SUFFIX} > ${DESTDIR}/suffix.txt
|
||||
|
||||
# erase all previous builds
|
||||
rm -f ${DESTDIR}/binaries/opentx*.hex
|
||||
rm -f ${DESTDIR}/binaries/opentx*.bin
|
||||
|
||||
# clean the sources
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd $DIR
|
||||
source ./version.sh
|
||||
|
||||
# pull the latest changes
|
||||
cd opentx
|
||||
git fetch
|
||||
git checkout $branch
|
||||
git reset --hard origin/$branch
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# make stamp header and extract OpenTX version (ie 2.1.2)
|
||||
make -C opentx/radio/src stamp_header
|
||||
rel=`grep "VERS_STR" opentx/radio/src/stamp-opentx.h | cut -d' ' -f3 | tr -d '"'`
|
||||
release=${rel%$OPENTX_VERSION_SUFFIX}
|
||||
echo ${release}
|
||||
|
||||
version=21
|
||||
branch=master
|
||||
winboxurl=http://winbox.open-tx.org/voice-builds
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
source ./version.sh
|
||||
|
||||
# release all components
|
||||
./release-companion.sh
|
||||
./release-firmware.sh
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/nightlies/companion
|
||||
|
||||
# clean radio source
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
# create companion rpm
|
||||
rm -rf ${DIR}/companion-build/
|
||||
mkdir -p $_
|
||||
cd $_
|
||||
cmake -DPCB=TARANIS ../opentx
|
||||
make package
|
||||
cp ./companion${version}-${release}${OPENTX_VERSION_SUFFIX}-i686.rpm ${DESTDIR}/linux
|
||||
chmod -Rf g+w ${DESTDIR}/linux/companion${version}-${release}${OPENTX_VERSION_SUFFIX}-i686.rpm
|
||||
|
||||
# request companion compilation on Windows
|
||||
cd ${DESTDIR}
|
||||
wget -qO- http://winbox.open-tx.org/companion-builds/compile22.php?branch=${branch}\&suffix=${OPENTX_VERSION_SUFFIX}
|
||||
wget -O windows/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe
|
||||
chmod -Rf g+w windows/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe
|
||||
|
||||
# update windows stamp
|
||||
cp $DIR/companion-build/version.h ./companion-windows.stamp
|
||||
chmod -Rf g+w ./companion-windows.stamp
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
# make the stamp
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
make stamp.h
|
||||
|
||||
# create the sources tgz in the release directory
|
||||
cd ../../..
|
||||
tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
|
||||
|
||||
# make lua fields for all radio variants
|
||||
cd opentx/radio/src
|
||||
make lua/lua_exports_taranis.inc lua/lua_exports_taranis_x9e.inc lua/lua_exports_horus.inc
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/nightlies/firmware
|
||||
|
||||
# copy the stamp and the release-notes to the http server
|
||||
cd $DIR
|
||||
cp opentx/radio/src/stamp.h ${DESTDIR}/stamp-opentx.txt
|
||||
cp opentx/radio/releasenotes.txt ${DESTDIR}
|
||||
cp opentx/radio/src/lua/lua_fields_*.txt ${DESTDIR}
|
||||
echo ${OPENTX_VERSION_SUFFIX} > ${DESTDIR}/suffix.txt
|
||||
|
||||
# erase all previous builds
|
||||
rm -f ${DESTDIR}/binaries/opentx*.hex
|
||||
rm -f ${DESTDIR}/binaries/opentx*.bin
|
||||
|
||||
# clean the sources
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd $DIR
|
||||
source ./version.sh
|
||||
|
||||
# pull the latest changes
|
||||
cd opentx
|
||||
git fetch
|
||||
git checkout $branch
|
||||
git reset --hard origin/$branch
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# make stamp header and extract OpenTX version (ie 2.1.2)
|
||||
make -C opentx/radio/src stamp.h
|
||||
rel=`grep "VERSION" opentx/radio/src/stamp.h | cut -d' ' -f3 | tr -d '"'`
|
||||
release=${rel%$OPENTX_VERSION_SUFFIX}
|
||||
echo ${release}
|
||||
|
||||
version=22
|
||||
branch=next
|
||||
winboxurl=http://winbox.open-tx.org/voice-builds
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# make sure we are in the good directory
|
||||
cd ~opentx/release-20/
|
||||
|
||||
# release all components
|
||||
./release-companion.sh
|
||||
#./release-voices.sh
|
||||
#./release-lua.sh
|
||||
./release-firmware.sh
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# make sure we are in the good directory
|
||||
cd ~opentx/release-20/
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve the version number
|
||||
cd opentx/radio/src
|
||||
line=`grep "VERSION = " Makefile`
|
||||
version=`expr "$line" : 'VERSION = \([0-9]\..*\)'`
|
||||
|
||||
# create companion rpm
|
||||
rm -rf ~opentx/release-20/companion-build/
|
||||
mkdir -p $_
|
||||
cd $_
|
||||
cmake ../opentx/companion/src
|
||||
make package
|
||||
|
||||
cp ./companion-$version-i686.rpm /var/www/html/downloads-20/companion/
|
||||
make stamp
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
# request companion compilation on Windows
|
||||
cd /var/www/html/downloads-20/companion/
|
||||
wget -qO- http://winbox.open-tx.org/companion-builds/compile20.php?branch=2.0
|
||||
wget -O companionInstall_$version.exe http://winbox.open-tx.org/companion-builds/companionInstall_$version.exe
|
||||
mv ~opentx/release-20/opentx/companion/companion.stamp ./companion-windows.stamp
|
||||
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# make sure we are in the good directory
|
||||
cd ~opentx/release-20/
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# make the stamp
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
make opentx-stamp
|
||||
make lua_exports.cpp
|
||||
|
||||
# create the sources tgz in the release directory
|
||||
cd ../../..
|
||||
tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
|
||||
|
||||
# copy the stamp and the release-notes to the http server
|
||||
cd ~opentx/release-20/
|
||||
cp opentx/radio/src/stamp-opentx.txt /var/www/html/downloads-20/firmware/
|
||||
cp opentx/radio/releasenotes.txt /var/www/html/downloads-20/firmware/
|
||||
cp opentx/radio/src/lua_fields.txt /var/www/html/downloads-20/firmware/
|
||||
|
||||
# erase all previous builds
|
||||
rm -f /var/www/html/downloads-20/firmware/binaries/opentx*.hex
|
||||
rm -f /var/www/html/downloads-20/firmware/binaries/opentx*.bin
|
||||
|
||||
# clean the sources
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# make sure we are in the good directory
|
||||
cd ~opentx/release-20/
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# make the stamp
|
||||
cd opentx/radio/wizard/
|
||||
zip -r /var/www/html/lua-20/wizard.zip *.lua *.bmp
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# get voice packs
|
||||
wget -O /dev/null http://winbox.open-tx.org/voice-packs/compile.php
|
||||
cd /var/www/html/voices-20/opentx-taranis/en/
|
||||
wget -O english-irish-taranis.zip http://winbox.open-tx.org/voice-packs/english-irish-taranis.zip
|
||||
wget -O english-scottish-taranis.zip http://winbox.open-tx.org/voice-packs/english-scottish-taranis.zip
|
||||
wget -O english-american-taranis.zip http://winbox.open-tx.org/voice-packs/english-american-taranis.zip
|
||||
wget -O english-australian-taranis.zip http://winbox.open-tx.org/voice-packs/english-australian-taranis.zip
|
||||
# wget -O english-taranis.csv http://winbox.open-tx.org/voice-packs/english-irish-taranis.csv
|
||||
cd /var/www/html/voices-20/opentx-taranis/fr/
|
||||
wget -O french-taranis.zip http://winbox.open-tx.org/voice-packs/french-taranis.zip
|
||||
# wget -O french-taranis.csv http://winbox.open-tx.org/voice-packs/french-taranis.csv
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
|
||||
# make sure we are in the good directory
|
||||
cd ~opentx/release-20/
|
||||
|
||||
# pull the latest changes
|
||||
cd opentx
|
||||
git fetch
|
||||
git checkout 2.0
|
||||
git reset --hard origin/2.0
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
source ./version.sh
|
||||
|
||||
# release all components
|
||||
./release-companion.sh
|
||||
./release-voices.sh
|
||||
./release-lua.sh
|
||||
./release-firmware.sh
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/companion
|
||||
|
||||
# clean radio source
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
# create companion rpm
|
||||
rm -rf ${DIR}/companion-build/
|
||||
mkdir -p ${DIR}/companion-build/
|
||||
cd ${DIR}/companion-build/
|
||||
cmake ../opentx/companion/src
|
||||
make package
|
||||
cp ./companion${version}-${release}-i686.rpm ${DESTDIR}
|
||||
make stamp
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
# request companion compilation on Windows
|
||||
cd ${DESTDIR}
|
||||
wget -qO- http://winbox.open-tx.org/companion-builds/compile21.php?branch=${branch}
|
||||
wget -O companion-windows-${release}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}.exe
|
||||
mv ${DIR}/opentx/companion/companion.stamp ./companion-windows.stamp
|
||||
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd $DIR
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
# make the stamp
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
make opentx-stamp
|
||||
|
||||
# create the sources tgz in the release directory
|
||||
cd ../../..
|
||||
tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
|
||||
|
||||
# make lua fields for all radio variants
|
||||
cd opentx/radio/src
|
||||
make lua_exports_taranis.inc lua_exports_taranis_x9e.inc
|
||||
|
||||
DESTDIR=/var/www/html/downloads-${version}/firmware
|
||||
|
||||
# copy the stamp and the release-notes to the http server
|
||||
cd ${DIR}
|
||||
cp opentx/radio/src/stamp-opentx.txt ${DESTDIR}
|
||||
cp opentx/radio/releasenotes.txt ${DESTDIR}
|
||||
cp opentx/radio/src/lua_fields_*.txt ${DESTDIR}
|
||||
|
||||
# erase all previous builds
|
||||
rm -f ${DESTDIR}/binaries/opentx*.hex
|
||||
rm -f ${DESTDIR}/binaries/opentx*.bin
|
||||
|
||||
# clean the sources
|
||||
cd opentx/radio/src
|
||||
make clean
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# pull the latest changes
|
||||
./update-repo.sh
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
# release wizard
|
||||
cd opentx/radio/wizard/
|
||||
zip -r /var/www/html/lua-${version}/wizard.zip *.lua *.bmp
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd ${DIR}
|
||||
|
||||
# retrieve release after the repo update
|
||||
source ./version.sh
|
||||
|
||||
# build voice packs
|
||||
wget -O /dev/null ${winboxurl}/compile.php?branch=${branch}
|
||||
|
||||
# get voice packs
|
||||
cd /var/www/html/voices-${version}/opentx-taranis/en/
|
||||
wget -O english-irish-taranis.zip ${winboxurl}/english-irish-taranis.zip
|
||||
wget -O english-scottish-taranis.zip ${winboxurl}/english-scottish-taranis.zip
|
||||
wget -O english-american-taranis.zip ${winboxurl}/english-american-taranis.zip
|
||||
wget -O english-australian-taranis.zip ${winboxurl}/english-australian-taranis.zip
|
||||
# wget -O english-taranis.csv ${winboxurl}/english-irish-taranis.csv # doesn't seem to work
|
||||
|
||||
cd /var/www/html/voices-${version}/opentx-taranis/fr/
|
||||
wget -O french-taranis.zip ${winboxurl}/french-taranis.zip
|
||||
# wget -O french-taranis.csv ${winboxurl}/french-taranis.csv #outdated
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stops on first error
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# make sure we are in the good directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
cd $DIR
|
||||
source ./version.sh
|
||||
|
||||
# pull the latest changes
|
||||
cd opentx
|
||||
git fetch
|
||||
git checkout $branch
|
||||
git reset --hard origin/$branch
|
||||
chmod -Rf g+w . || true
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# make stamp header and extract OpenTX version (ie 2.1.2)
|
||||
make -C opentx/radio/src stamp_header
|
||||
rel=`grep "VERS_STR" opentx/radio/src/stamp-opentx.h | cut -d' ' -f3 | tr -d '"'`
|
||||
release=${rel%$OPENTX_VERSION_SUFFIX}
|
||||
echo ${release}
|
||||
|
||||
version=21
|
||||
branch=master
|
||||
winboxurl=http://winbox.open-tx.org/voice-builds
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# in this file define ssh options (like private key)
|
||||
source ~/.opentx-jenkins-settings
|
||||
|
||||
function upload() {
|
||||
# $1 is release directory name
|
||||
# copy scripts to server
|
||||
scp ${SCP_OPT} ${1}/*.sh ${USERNAME}@jenkins.open-tx.org:/home/opentx/${1}/
|
||||
}
|
||||
|
||||
upload release-20
|
||||
upload nightly-21
|
||||
upload release-21
|
||||
upload nightly-22
|
||||
@@ -1,12 +0,0 @@
|
||||
opentx-companion22 (2.2.1~ppa01~artful) artful; urgency=low
|
||||
|
||||
* New release 2.2.1~ppa01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Sun, 17 Dec 2017 17:32:37 +0100
|
||||
|
||||
opentx-companion22 (2.2.1~N432+test01~artful) artful; urgency=low
|
||||
|
||||
* New release 2.2.1~N432+test01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Fri, 10 Nov 2017 18:36:11 +0100
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
opentx-companion22 (2.2.1~ppa01~bionic) bionic; urgency=low
|
||||
|
||||
* New release 2.2.1~ppa01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Sun, 17 Dec 2017 17:32:37 +0100
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/suffix
|
||||
@@ -1,21 +0,0 @@
|
||||
Source: opentx-companion22
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: projectkk2glider <projectkk2glider@gmail.com>
|
||||
Build-Depends: cmake,
|
||||
build-essential,
|
||||
python,
|
||||
python-qt4,
|
||||
qt5-default,
|
||||
qttools5-dev-tools,
|
||||
qtmultimedia5-dev,
|
||||
qttools5-dev,
|
||||
libsdl1.2-dev,
|
||||
libqt5svg5-dev
|
||||
Homepage: http://www.open-tx.org/
|
||||
|
||||
Package: opentx-companion22
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, libqt5multimedia5-plugins
|
||||
Description: OpenTX Companion
|
||||
Models and settings editor for the OpenTX open source firmware
|
||||
@@ -1,339 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
@@ -1,51 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
BUILDDIR = build_dir
|
||||
COMMON_OPTIONS = -DCMAKE_INSTALL_PREFIX=../debian/tmp/usr \
|
||||
-DSIMULATOR_INSTALL_PREFIX=/usr \
|
||||
-DFIRMWARE_TARGET=NO \
|
||||
-DGVARS=YES \
|
||||
-DHELI=YES \
|
||||
-DALLOW_NIGHTLY_BUILDS=NO \
|
||||
-DVERSION_SUFFIX=__VERSION_SUFFIX__
|
||||
|
||||
STM32_OPTIONS = -DLUA=YES
|
||||
|
||||
# secondly called by launchpad
|
||||
build:
|
||||
mkdir $(BUILDDIR);
|
||||
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) -DPCB=9X ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) -DPCB=GRUVIN9X ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) -DPCB=MEGA2560 ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) -DPCB=SKY9X ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) -DPCB=9XRPRO ../ ; make libsimulator
|
||||
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) $(STM32_OPTIONS) -DPCB=X7 ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) $(STM32_OPTIONS) -DPCB=X9D ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) $(STM32_OPTIONS) -DPCB=X9D+ ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) $(STM32_OPTIONS) -DPCB=X9E ../ ; make libsimulator
|
||||
cd $(BUILDDIR); cmake $(COMMON_OPTIONS) $(STM32_OPTIONS) -DPCB=X12S ../ ; make libsimulator
|
||||
|
||||
make -C $(BUILDDIR) companion22 simulator22
|
||||
|
||||
# thirdly called by launchpad
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
binary-indep:
|
||||
# nothing to be done
|
||||
|
||||
binary-arch:
|
||||
# final cmake neede in order to find all simulators
|
||||
cd $(BUILDDIR); cmake ../
|
||||
cd $(BUILDDIR); cmake -P cmake_install.cmake
|
||||
mkdir debian/tmp/DEBIAN
|
||||
dpkg-shlibdeps debian/tmp/usr/bin/companion22 debian/tmp/usr/bin/simulator22 debian/tmp/usr/lib/companion22/*
|
||||
dpkg-gencontrol -popentx-companion22
|
||||
dpkg --build debian/tmp ..
|
||||
|
||||
# firstly called by launchpad
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)
|
||||
|
||||
.PHONY: binary binary-arch binary-indep clean
|
||||
@@ -1,72 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# $1 is distribution "trusty" OR "yakkety"
|
||||
#
|
||||
# Option "-n" or "--nightly" can be used to configure build script to produce a Companion with DALLOW_NIGHTLY_BUILDS=YES flag
|
||||
|
||||
|
||||
cd `dirname ${0}`
|
||||
|
||||
nightly_build=0
|
||||
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
case "$1" in
|
||||
--nightly*)
|
||||
nightly_build=1;;
|
||||
-n*)
|
||||
nightly_build=1;;
|
||||
-*)
|
||||
echo >&2 "usage: $0 [-n|--nightly] DISTRO"
|
||||
exit 1;;
|
||||
*)
|
||||
break;; # terminate while loop
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
distro=${1%/}
|
||||
|
||||
. common/suffix
|
||||
|
||||
if [ -z ${distro} ] ; then
|
||||
echo "Missing distribution name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ${distro} ] ; then
|
||||
echo "Files for ${distro} not found. Most likely unsupported distribution. Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Preparing sources for ${distro}..."
|
||||
|
||||
# prepare debian directory
|
||||
rm -f ../debian/*
|
||||
mkdir -p ../debian/
|
||||
cp common/* ../debian/
|
||||
cp ${distro}/* ../debian/
|
||||
|
||||
|
||||
if [ ${nightly_build} -gt 0 ] ; then
|
||||
echo "Editing rules to set version suffix to \"${suffix}\""
|
||||
sed -i "s/__VERSION_SUFFIX__/${suffix}/g" ../debian/rules
|
||||
echo "Setting nightly build flag"
|
||||
sed -i "s/DALLOW_NIGHTLY_BUILDS=YES/DALLOW_NIGHTLY_BUILDS=YES/g" ../debian/rules
|
||||
else
|
||||
sed -i "s/__VERSION_SUFFIX__//g" ../debian/rules
|
||||
sed -i "s/DALLOW_NIGHTLY_BUILDS=YES/DALLOW_NIGHTLY_BUILDS=NO/g" ../debian/rules
|
||||
fi
|
||||
|
||||
# remove old package and prepare new one
|
||||
cd ..
|
||||
rm -f ../opentx-companion22_*${distro}*
|
||||
debuild -S -sa -I -Ijenkins -Ilaunchpad -Idoc -Ibuild -I*.luac
|
||||
|
||||
echo "Use this command to upload to launchpad (nightly builds):"
|
||||
echo " dput ppa:opentx-test/ppa opentx-companion22_<version>.changes"
|
||||
echo "OR releases:"
|
||||
echo " dput ppa:opentx-test/rel opentx-companion22_<version>.changes"
|
||||
@@ -1,108 +0,0 @@
|
||||
# Launchpad instructions
|
||||
|
||||
## General description
|
||||
|
||||
This directory contains files and scripts that help to prepare the files needed by the Launchpad.net server to build the Debian packages of OpentX Companion for Ubuntu.
|
||||
|
||||
Each supported release of Ubuntu has its own sub-directory, but most of the files reside in the common directory. When preparing a source for certain Ubuntu release always use its the directory name.
|
||||
|
||||
There are several step to release a new version of Companion on Launchpad:
|
||||
* update the Debian changelog
|
||||
* package the source
|
||||
* upload the source to Launchpad
|
||||
|
||||
The steps above should be repeated for every Ubuntu release. The example below will work with Ubuntu `trusty`
|
||||
|
||||
## Prerequisites
|
||||
|
||||
* you must have launchpad.net account and be a member of the team
|
||||
* create and configure your GPG signing key
|
||||
|
||||
## Prepare your GPG key
|
||||
|
||||
Create GPG key using **name** and **email* that will later appear in the changelog. This will be the key
|
||||
that will be used to sign the package before uploading it to Launchpad.
|
||||
```
|
||||
gpg --gen-key
|
||||
```
|
||||
|
||||
Upload your GPG key (public part) to the Ubuntu key-server. First get the KEY ID (8 characters) of your key:
|
||||
```
|
||||
gpg --list-keys
|
||||
```
|
||||
|
||||
Then upload it (replace <KEY ID> with your key ID):
|
||||
```
|
||||
gpg --send-keys --keyserver keyserver.ubuntu.com <KEY ID>
|
||||
```
|
||||
|
||||
## Create a Launchpad account
|
||||
* Go to https://launchpad.net/ and sign-in or register.
|
||||
* Associate your GPG key with your launchpad account. You will need your keys fingerprint (<fingerprint looks like E448 37D6 EF6E F13C 30C0 415C E7A0 818F 4864 9459>), get it with:
|
||||
```
|
||||
gpg --fingerprint
|
||||
```
|
||||
* Join OpenTX team on launchpad (one of admins will add you to the team).
|
||||
|
||||
|
||||
## Step 1: update the Debian changelog
|
||||
|
||||
You can edit changelog manually, but it is simpler to use a script that creates a generic entry in the changelog. You can always edit it later if needed.
|
||||
|
||||
The script is `update-changelog.sh` and it takes 4 parameters:
|
||||
* email address in the form of `name <email@address>`, since it contains a space it must be enclosed in quotation marks. The email addres must be the same as the one in your GPG key!
|
||||
* Ubuntu release (directory name)
|
||||
* OpenTX version
|
||||
* OpenTX sub-version (Nxxx for nightly builds)
|
||||
|
||||
Example:
|
||||
```
|
||||
cd opentx/launchpad
|
||||
./update-changelog.sh "projectkk2glider <projectkk2glider@gmail.com>" trusty 2.2.0 N363
|
||||
```
|
||||
|
||||
If there is an error and you need to build another version of the same OpenTX release, then just add `.n` to the sub-version like so:
|
||||
```
|
||||
N363.1
|
||||
N363.2
|
||||
etc
|
||||
```
|
||||
|
||||
The script will append new section to the existing file in this case `trusty/changelog`. Now you have a chance to edit the file manually if needed.
|
||||
|
||||
## Step 2: prepare files for upload (package the source)
|
||||
|
||||
First make sure you don't have any files that you don't want included in the opentx directory. Then use the script `prepare.sh` with the name of release as the first parameter:
|
||||
|
||||
```
|
||||
cd opentx/launchpad
|
||||
./prepare.sh trusty
|
||||
```
|
||||
|
||||
The result of this script are three files which are placed outside the OpenTX source tree at the same level as `opentx` directory:
|
||||
```
|
||||
ls -1 ../../opentx-companion22_2.2.0~N363*
|
||||
../../opentx-companion22_2.2.0~N363~trusty.dsc
|
||||
../../opentx-companion22_2.2.0~N363~trusty_source.build
|
||||
../../opentx-companion22_2.2.0~N363~trusty_source.changes
|
||||
../../opentx-companion22_2.2.0~N363~trusty.tar.gz
|
||||
```
|
||||
|
||||
You should now make sure that the just build source archive `opentx-companion22_2.2.0~N363~trusty.tar.gz` does not contain any files or directories that you don;t want to share with the world, because this is one of the files that will be uploaded to the Launchpad server. Currently clean OpenTX tree produces this file with approximate size of 16.8MB.
|
||||
|
||||
## Upload the source to the Launchpad
|
||||
|
||||
Last step it to upload the new release to the Launchpad server and wait for it to be built. Use `dput` command with two arguments:
|
||||
* name of the PPA `ppa:opentx-test/ppa` (your public key must be associated with that PPA)
|
||||
* name of the release file `<dsfsfggg>.changes`
|
||||
|
||||
Upload to nightly PPA:
|
||||
```
|
||||
dput ppa:opentx-test/ppa ../../opentx-companion22_2.2.0~N363~trusty_source.changes
|
||||
```
|
||||
|
||||
Upload to release PPA:
|
||||
```
|
||||
dput ppa:opentx-test/rel ../../opentx-companion22_2.2.0~N363~trusty_source.changes
|
||||
```
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# $1 is changelog user and email, example "projectkk2glider <projectkk2glider@gmail.com>"
|
||||
# $2 is distribution "trusty" OR "yakkety"
|
||||
# $3 is version, example "2.2.1"
|
||||
# $4 is suffix (optional, used for nightly builds, example "N360")
|
||||
|
||||
email=${1}
|
||||
distro=${2%/}
|
||||
version=${3}
|
||||
suffix=${4}
|
||||
|
||||
echo "Updating changelog for ${distro}"
|
||||
|
||||
cd `dirname ${0}`
|
||||
|
||||
[ -z ${distro} ] && echo "Missing distribution name" && exit 1;
|
||||
[ ! -z ${suffix} ] && version=${version}~${suffix}
|
||||
|
||||
if [ ! -d ${distro} ] ; then
|
||||
echo "${distro} changelog not found. Most likely unsupported distribution. Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "opentx-companion22 (${version}~${distro}) ${distro}; urgency=low" > tmp-changelog
|
||||
echo "" >> tmp-changelog
|
||||
echo " * New release ${version}" >> tmp-changelog
|
||||
echo "" >> tmp-changelog
|
||||
echo " -- ${email} "`date -R` >> tmp-changelog
|
||||
echo "" >> tmp-changelog
|
||||
|
||||
cat tmp-changelog ${distro}/changelog > new-changelog
|
||||
mv new-changelog ${distro}/changelog
|
||||
rm tmp-changelog
|
||||
|
||||
echo "suffix=${suffix}" > common/suffix
|
||||
|
||||
echo "Result:"
|
||||
cat ${distro}/changelog | head -n 20
|
||||
@@ -1,23 +0,0 @@
|
||||
opentx-companion22 (2.2.1~ppa01~xenial) xenial; urgency=low
|
||||
|
||||
* New release 2.2.1~ppa01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Sun, 17 Dec 2017 17:32:44 +0100
|
||||
|
||||
opentx-companion22 (2.2.1~N432+test01~xenial) xenial; urgency=low
|
||||
|
||||
* New release 2.2.1~N432+test01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Fri, 10 Nov 2017 18:55:08 +0100
|
||||
|
||||
opentx-companion22 (2.2.0~ppa02~xenial) xenial; urgency=low
|
||||
|
||||
* New release 2.2.0~ppa02
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Wed, 31 May 2017 22:37:54 +0200
|
||||
|
||||
opentx-companion22 (2.2.0~ppa01~xenial) xenial; urgency=low
|
||||
|
||||
* OpenTX version 2.2.0
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Wed, 31 May 2017 21:50:57 +0200
|
||||
@@ -1,12 +0,0 @@
|
||||
opentx-companion22 (2.2.1~ppa01~zesty) zesty; urgency=low
|
||||
|
||||
* New release 2.2.1~ppa01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Sun, 17 Dec 2017 17:32:48 +0100
|
||||
|
||||
opentx-companion22 (2.2.1~N432+test01~zesty) zesty; urgency=low
|
||||
|
||||
* New release 2.2.1~N432+test01
|
||||
|
||||
-- projectkk2glider <projectkk2glider@gmail.com> Fri, 10 Nov 2017 18:37:33 +0100
|
||||
|
||||
+1
-1
@@ -339,7 +339,7 @@ getvalue_t getValue(mixsrc_t i)
|
||||
else if ((i >= MIXSRC_FIRST_SWITCH) && (i <= MIXSRC_LAST_SWITCH)) {
|
||||
mixsrc_t sw = i-MIXSRC_FIRST_SWITCH;
|
||||
if (SWITCH_EXISTS(sw)) {
|
||||
return (switchState(3*sw) ? -1024 : (switchState(3*sw+1) ? 0 : 1024));
|
||||
return (switchState(3*sw) ? -1024 : (IS_CONFIG_3POS(sw) && switchState(3*sw+1) ? 0 : 1024));
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#define MIXER_SCHEDULER_DEFAULT_PERIOD_US 4000u // 4ms
|
||||
#define MIXER_SCHEDULER_JOYSTICK_PERIOD_US 4000u // 4ms
|
||||
|
||||
#define MIN_REFRESH_RATE 850 /* us */
|
||||
#define MIN_REFRESH_RATE 1750 /* us */
|
||||
#define MAX_REFRESH_RATE 50000 /* us */
|
||||
|
||||
#if !defined(SIMU)
|
||||
|
||||
+3
-17
@@ -224,7 +224,8 @@ void generalDefault() {
|
||||
#if !defined(PCBI6X)
|
||||
g_eeGeneral.variant = EEPROM_VARIANT;
|
||||
#endif
|
||||
#if !defined(PCBHORUS)
|
||||
|
||||
#if defined(LCD_CONTRAST_DEFAULT)
|
||||
g_eeGeneral.contrast = LCD_CONTRAST_DEFAULT;
|
||||
#endif
|
||||
|
||||
@@ -1832,6 +1833,7 @@ int main()
|
||||
#if defined(PCBTARANIS)
|
||||
g_eeGeneral.contrast = LCD_CONTRAST_DEFAULT;
|
||||
#endif
|
||||
|
||||
wdt_disable();
|
||||
|
||||
boardInit();
|
||||
@@ -1844,30 +1846,14 @@ int main()
|
||||
loadFonts();
|
||||
#endif
|
||||
|
||||
#if defined(GUI) && !defined(PCBTARANIS) && !defined(PCBHORUS) && !defined(PCBI6X)
|
||||
// TODO remove this
|
||||
lcdInit();
|
||||
#endif
|
||||
|
||||
#if !defined(SIMU)
|
||||
stackPaint();
|
||||
#endif
|
||||
|
||||
#if defined(GUI) && !defined(PCBTARANIS)
|
||||
// lcdSetRefVolt(25);
|
||||
#endif
|
||||
|
||||
#if defined(SPLASH) && (defined(PCBTARANIS) || defined(PCBHORUS))
|
||||
drawSplash();
|
||||
#endif
|
||||
|
||||
#if defined(DSM2_SERIAL) && !defined(TELEMETRY_FRSKY)
|
||||
DSM2_Init();
|
||||
#endif
|
||||
|
||||
#if defined(MENU_ROTARY_SW)
|
||||
init_rotary_sw();
|
||||
#endif
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
if (!IS_FIRMWARE_COMPATIBLE_WITH_BOARD()) {
|
||||
|
||||
+1
-1
@@ -727,7 +727,7 @@ extern const char vers_stamp[];
|
||||
/**
|
||||
* Tries to find opentx version in the first 1024 byte of either firmware/bootloader (the one not running) or the buffer
|
||||
* @param buffer If non-null find the firmware version in the buffer instead
|
||||
* @return The opentx version string starting with "opentx-" or "no version found" if the version string is not found
|
||||
* @return The opentx version string starting with "opentx-" or "-" if the version string is not found
|
||||
*/
|
||||
const char* getOtherVersion(const char* buffer = nullptr);
|
||||
|
||||
|
||||
+2
-2
@@ -92,11 +92,11 @@ const char* getOtherVersion(const char* buffer)
|
||||
}
|
||||
|
||||
for (int i = 0; i < 1024; i++) {
|
||||
if (memcmp(buffer + i, "opentx-", 7) == 0) {
|
||||
if (memcmp(buffer + i, "openi6x-", 7) == 0) {
|
||||
return buffer + i;
|
||||
}
|
||||
}
|
||||
|
||||
return "no version found";
|
||||
return "-";
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1180,7 +1180,7 @@ void ConvertModel_217_to_218(ModelData & model)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (((oldModel.frsky.screensType >> (2*i)) & 0x03) == TELEMETRY_SCREEN_TYPE_GAUGES) {
|
||||
else if (((oldModel.frsky.screensType >> (2*i)) & 0x03) == TELEMETRY_SCREEN_TYPE_BARS) {
|
||||
for (int j = 0; j < 4; j++) {
|
||||
newModel.frsky.screens[i].bars[j].source = ConvertSource_217_to_218(oldModel.frsky.screens[i].bars[j].source);
|
||||
}
|
||||
@@ -1246,7 +1246,7 @@ bool eeConvert()
|
||||
// Information to the user and wait for key press
|
||||
g_eeGeneral.backlightMode = e_backlight_mode_on;
|
||||
g_eeGeneral.backlightBright = 0;
|
||||
g_eeGeneral.contrast = 25;
|
||||
g_eeGeneral.contrast = LCD_CONTRAST_DEFAULT;
|
||||
|
||||
ALERT(STR_STORAGE_WARNING, msg, AU_BAD_RADIODATA);
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ FRESULT openBinFile(MemoryType mt, unsigned int index)
|
||||
void extractFirmwareVersion(VersionTag* tag)
|
||||
{
|
||||
const char* vers = getOtherVersion((char*)Block_buffer);
|
||||
if (!vers || (vers[0] == 'n' && vers[1] == 'o')) { // "no version found"
|
||||
if (!vers || (vers[0] == '-')) { // "-" -> no version found
|
||||
memcpy(tag->flavour, "unknown", sizeof("unknown"));
|
||||
tag->version = "unknown";
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ void USB_BSP_mDelay(const uint32_t msec) {
|
||||
static void CRS_Config(void)
|
||||
{
|
||||
/*Enable CRS Clock*/
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_CRS, ENABLE);
|
||||
// RCC_APB1PeriphClockCmd(RCC_APB1Periph_CRS, ENABLE); // moved to general clock init
|
||||
|
||||
/* Select USB SOF as synchronization source */
|
||||
CRS_SynchronizationSourceConfig(CRS_SYNCSource_USB);
|
||||
|
||||
@@ -74,7 +74,11 @@
|
||||
|
||||
#define CDC_IN_FRAME_INTERVAL 4 /* Number of frames between IN transfers */
|
||||
#if defined(STM32F0)
|
||||
#if defined(DEBUG)
|
||||
#define APP_RX_DATA_SIZE 256
|
||||
#else
|
||||
#define APP_RX_DATA_SIZE 128
|
||||
#endif
|
||||
#else
|
||||
#define APP_RX_DATA_SIZE 512 // USB serial port output buffer. TODO: tune this buffer size /* Total size of IN buffer: APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */
|
||||
#endif
|
||||
|
||||
@@ -12,19 +12,13 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Multiprotocol. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
// Last sync with hexfet new_protocols/flysky_a7105.c dated 2015-09-28
|
||||
#include "../../telemetry/flysky_ibus.h"
|
||||
#include "iface_a7105.h"
|
||||
#include "opentx.h"
|
||||
|
||||
#define AFHDS2A_HUB_TELEMETRY
|
||||
//#define AFHDS2A_NUMFREQ 16
|
||||
|
||||
extern int8_t s_editMode;
|
||||
|
||||
static uint8_t num_ch;
|
||||
|
||||
inline uint32_t GetChipID(void) {
|
||||
inline uint32_t GetUIDHash(void) {
|
||||
return (uint32_t)(READ_REG(*((uint32_t *)UID_BASE))) ^
|
||||
(uint32_t)(READ_REG(*((uint32_t *)(UID_BASE + 4U)))) ^
|
||||
(uint32_t)(READ_REG(*((uint32_t *)(UID_BASE + 8U))));
|
||||
@@ -342,7 +336,7 @@ SendNoAntSwitch_:
|
||||
|
||||
void initAFHDS2A() {
|
||||
RadioState = ((TIM_CALL << CALLER) | (SEND << SEND_RES) | (AFHDS2A_DATA));
|
||||
ID.MProtocol_id = GetChipID();
|
||||
ID.MProtocol_id = GetUIDHash();
|
||||
AFHDS2A_calc_channels();
|
||||
A7105_Init();
|
||||
packet_count = 0;
|
||||
|
||||
@@ -407,8 +407,8 @@ extern volatile bool pendingTelemetryPollFrame;
|
||||
// Audio driver
|
||||
void initBuzzerTimer(void);
|
||||
|
||||
#define VOLUME_LEVEL_MAX 23
|
||||
#define VOLUME_LEVEL_DEF 12
|
||||
#define VOLUME_LEVEL_MAX 30 // dfplayer max
|
||||
#define VOLUME_LEVEL_DEF 23
|
||||
#if !defined(SOFTWARE_VOLUME)
|
||||
void setScaledVolume(uint8_t volume);
|
||||
void setVolume(uint8_t volume);
|
||||
|
||||
@@ -242,6 +242,7 @@ void ActionAFHDS2A();
|
||||
// #define TRAINER_TIMER_FREQ (PERI1_FREQUENCY * TIMER_MULT_APB1)
|
||||
|
||||
// USB
|
||||
#define USB_RCC_APB1Periph_CRS RCC_APB1Periph_CRS
|
||||
#define USB_RCC_AHBPeriph_GPIO RCC_AHBPeriph_GPIOA
|
||||
#define USB_GPIO GPIOA
|
||||
#define USB_GPIO_PIN_DM GPIO_Pin_11 // PA.11
|
||||
@@ -379,7 +380,7 @@ void ActionAFHDS2A();
|
||||
| AUX3_SERIAL_RCC_AHB1Periph | AUX4_SERIAL_RCC_AHB1Periph | ADC_RCC_AHB1Periph | USB_RCC_AHBPeriph_GPIO)
|
||||
#define RCC_APB1_LIST (I2C_RCC_APB1Periph | RCC_APB1Periph_TIM6 /*delays*/ | INTERRUPT_xMS_RCC_APB1Periph | TIMER_2MHz_RCC_APB1Periph \
|
||||
| TELEMETRY_RCC_APB1Periph | BACKLIGHT_STD_RCC_APB1Periph | BACKLIGHT_RCC_APB1Periph | RCC_APB1Periph_USB \
|
||||
| AUX3_SERIAL_RCC_APB1Periph | AUX4_SERIAL_RCC_APB1Periph)
|
||||
| AUX3_SERIAL_RCC_APB1Periph | AUX4_SERIAL_RCC_APB1Periph | USB_RCC_APB1Periph_CRS)
|
||||
#define RCC_APB2_LIST (MIXER_SCHEDULER_TIMER_RCC_APB2Periph | PWM_RCC_APB2Periph | INTMODULE_RCC_APB2Periph | EXTMODULE_RCC_APB2Periph \
|
||||
| AUX_SERIAL_RCC_APB2Periph | ADC_RCC_APB2Periph)
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ void i2cInit()
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
GPIO_InitStructure.GPIO_Pin = I2C_SCL_GPIO_PIN | I2C_SDA_GPIO_PIN;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
|
||||
@@ -132,10 +132,10 @@ const uint32_t CROSSFIRE_BAUDRATES[] = {
|
||||
const uint8_t CROSSFIRE_PERIODS[] = {
|
||||
4,
|
||||
16,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
};
|
||||
|
||||
#define CROSSFIRE_BAUDRATE CROSSFIRE_BAUDRATES[g_eeGeneral.telemetryBaudrate]
|
||||
|
||||
@@ -100,7 +100,7 @@ extern uint8_t telemetryState;
|
||||
#define TELEMETRY_SERIAL_DEFAULT 0
|
||||
#define TELEMETRY_SERIAL_8E2 1
|
||||
#define TELEMETRY_SERIAL_WITHOUT_DMA 2
|
||||
#define TELEMETRY_OUTPUT_BUFFER_SIZE 64
|
||||
#define TELEMETRY_OUTPUT_BUFFER_SIZE 32 // 64
|
||||
#define TELEMETRY_AVERAGE_COUNT 3
|
||||
|
||||
#if defined(CROSSFIRE) || defined(MULTIMODULE) || defined(AFHDS2A)
|
||||
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
#
|
||||
# STMicroelectronics ST-LINK/V1, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 in-circuit
|
||||
# debugger/programmer
|
||||
#
|
||||
|
||||
adapter driver hla
|
||||
hla_layout stlink
|
||||
hla_device_desc "ST-LINK"
|
||||
hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753
|
||||
|
||||
# Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2
|
||||
# devices seem to have serial numbers with unreadable characters. ST-LINK/V2
|
||||
# firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
|
||||
# number reset issues.
|
||||
# eg.
|
||||
#hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"
|
||||
@@ -1,95 +0,0 @@
|
||||
# script for stm32f0x family
|
||||
|
||||
#
|
||||
# stm32 devices support SWD transports only.
|
||||
#
|
||||
source [find target/swj-dp.tcl]
|
||||
source [find mem_helper.tcl]
|
||||
|
||||
if { [info exists CHIPNAME] } {
|
||||
set _CHIPNAME $CHIPNAME
|
||||
} else {
|
||||
set _CHIPNAME stm32f0x
|
||||
}
|
||||
|
||||
set _ENDIAN little
|
||||
|
||||
# Work-area is a space in RAM used for flash programming
|
||||
# By default use 4kB
|
||||
if { [info exists WORKAREASIZE] } {
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
} else {
|
||||
set _WORKAREASIZE 0x1000
|
||||
}
|
||||
|
||||
# Allow overriding the Flash bank size
|
||||
if { [info exists FLASH_SIZE] } {
|
||||
set _FLASH_SIZE $FLASH_SIZE
|
||||
} else {
|
||||
# autodetect size
|
||||
set _FLASH_SIZE 0
|
||||
}
|
||||
|
||||
#jtag scan chain
|
||||
if { [info exists CPUTAPID] } {
|
||||
set _CPUTAPID $CPUTAPID
|
||||
} else {
|
||||
# See STM Document RM0091
|
||||
# Section 29.5.3
|
||||
set _CPUTAPID 0x0bb11477
|
||||
}
|
||||
|
||||
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
||||
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
||||
# flash size will be probed
|
||||
set _FLASHNAME $_CHIPNAME.flash
|
||||
flash bank $_FLASHNAME stm32f1x 0x08000000 $_FLASH_SIZE 0 0 $_TARGETNAME
|
||||
|
||||
# adapter speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
|
||||
adapter speed 1000
|
||||
|
||||
adapter srst delay 100
|
||||
|
||||
reset_config srst_nogate
|
||||
|
||||
if {![using_hla]} {
|
||||
# if srst is not fitted use SYSRESETREQ to
|
||||
# perform a soft reset
|
||||
cortex_m reset_config sysresetreq
|
||||
}
|
||||
|
||||
proc stm32f0x_default_reset_start {} {
|
||||
# Reset clock is HSI (8 MHz)
|
||||
adapter speed 1000
|
||||
}
|
||||
|
||||
proc stm32f0x_default_examine_end {} {
|
||||
# Enable debug during low power modes (uses more power)
|
||||
mmw 0x40015804 0x00000006 0 ;# DBGMCU_CR |= DBG_STANDBY | DBG_STOP
|
||||
|
||||
# Stop watchdog counters during halt
|
||||
mmw 0x40015808 0x00001800 0 ;# DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP
|
||||
}
|
||||
|
||||
proc stm32f0x_default_reset_init {} {
|
||||
# Configure PLL to boost clock to HSI x 6 (48 MHz)
|
||||
mww 0x40021004 0x00100000 ;# RCC_CFGR = PLLMUL[2]
|
||||
mmw 0x40021000 0x01000000 0 ;# RCC_CR[31:16] |= PLLON
|
||||
mww 0x40022000 0x00000011 ;# FLASH_ACR = PRFTBE | LATENCY[0]
|
||||
sleep 10 ;# Wait for PLL to lock
|
||||
mmw 0x40021004 0x00000002 0 ;# RCC_CFGR |= SW[1]
|
||||
|
||||
# Boost JTAG frequency
|
||||
adapter speed 8000
|
||||
}
|
||||
|
||||
# Default hooks
|
||||
$_TARGETNAME configure -event examine-end { stm32f0x_default_examine_end }
|
||||
$_TARGETNAME configure -event reset-start { stm32f0x_default_reset_start }
|
||||
$_TARGETNAME configure -event reset-init { stm32f0x_default_reset_init }
|
||||
Reference in New Issue
Block a user