[Taranis] Altitude played without decimal when >= 10m
[Taranis] WDT and Timers paused when on a breakpoint
This commit is contained in:
+3
-2
@@ -615,6 +615,7 @@ ifeq ($(PCB), TARANIS)
|
|||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/system_stm32f2xx.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/system_stm32f2xx.c
|
||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/misc.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/misc.c
|
||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_gpio.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_gpio.c
|
||||||
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_dbgmcu.c
|
||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_rcc.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_rcc.c
|
||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_spi.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_spi.c
|
||||||
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_dma.c
|
SRC += targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_dma.c
|
||||||
@@ -1069,8 +1070,8 @@ stamp_header:
|
|||||||
@echo
|
@echo
|
||||||
@echo "Generate Version-stamp:"
|
@echo "Generate Version-stamp:"
|
||||||
@echo "//Automatically generated file (Makefile) - do not edit" > stamp-opentx.h
|
@echo "//Automatically generated file (Makefile) - do not edit" > stamp-opentx.h
|
||||||
@echo "#define DATE_STR \"`date +%Y-%m-%d`\"" >> stamp-opentx.h
|
@echo "#define DATE_STR \"`date +%Y-%m-%d | tr -d '\r\n'`\"" >> stamp-opentx.h
|
||||||
@echo "#define TIME_STR \"`date +%H:%M:%S`\"" >> stamp-opentx.h
|
@echo "#define TIME_STR \"`date +%H:%M:%S | tr -d '\r\n'`\"" >> stamp-opentx.h
|
||||||
@echo "#define SVN_STR \"opentx-r$(SVNREV)\"" >> stamp-opentx.h
|
@echo "#define SVN_STR \"opentx-r$(SVNREV)\"" >> stamp-opentx.h
|
||||||
@cat stamp-opentx.h
|
@cat stamp-opentx.h
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_dcd_int.h"
|
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_dcd_int.h"
|
||||||
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_bsp.h"
|
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_bsp.h"
|
||||||
|
#include "stm32f2xx_dbgmcu.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
volatile uint32_t Tenms ; // TODO to remove everywhere / use a #define
|
volatile uint32_t Tenms ; // TODO to remove everywhere / use a #define
|
||||||
@@ -198,6 +199,11 @@ void boardInit()
|
|||||||
eepromInit();
|
eepromInit();
|
||||||
sportInit();
|
sportInit();
|
||||||
usbInit();
|
usbInit();
|
||||||
|
|
||||||
|
#if defined(DEBUG)
|
||||||
|
DBGMCU_APB1PeriphConfig(DBGMCU_IWDG_STOP|DBGMCU_TIM1_STOP|DBGMCU_TIM2_STOP|DBGMCU_TIM3_STOP|DBGMCU_TIM6_STOP|DBGMCU_TIM8_STOP|DBGMCU_TIM10_STOP|DBGMCU_TIM13_STOP|DBGMCU_TIM14_STOP, ENABLE);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
#define TR_PLAY_TRACK "Play Track"
|
#define TR_PLAY_TRACK "Play Track"
|
||||||
#endif
|
#endif
|
||||||
#define TR_PLAY_BOTH "Play Both\0"
|
#define TR_PLAY_BOTH "Play Both\0"
|
||||||
#define TR_PLAY_VALUE "Play Val\0 "
|
#define TR_PLAY_VALUE TR("Play Val\0 ", "Play Value")
|
||||||
#else
|
#else
|
||||||
#define TR_PLAY_TRACK "[Play Trk]"
|
#define TR_PLAY_TRACK "[Play Trk]"
|
||||||
#define TR_PLAY_BOTH "[Play Bth]"
|
#define TR_PLAY_BOTH "[Play Bth]"
|
||||||
|
|||||||
@@ -122,14 +122,14 @@ I18N_PLAY_FUNCTION(cz, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,14 +112,14 @@ I18N_PLAY_FUNCTION(de, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,14 +99,14 @@ I18N_PLAY_FUNCTION(en, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,14 +136,14 @@ I18N_PLAY_FUNCTION(es, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,14 +118,14 @@ I18N_PLAY_FUNCTION(fr, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,14 +108,14 @@ I18N_PLAY_FUNCTION(it, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,14 +121,14 @@ I18N_PLAY_FUNCTION(pt, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,14 +86,14 @@ I18N_PLAY_FUNCTION(se, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,14 +137,14 @@ I18N_PLAY_FUNCTION(sk, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
#if defined(CPUARM)
|
|
||||||
if (att & PREC1) {
|
|
||||||
number /= 10;
|
|
||||||
att -= PREC1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unit++;
|
unit++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user