Cosmetics

This commit is contained in:
Bertrand Songis
2016-08-01 18:52:29 +02:00
parent 6d2c5a4db6
commit 4df85d1047
60 changed files with 262 additions and 262 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#if defined(CPUARM) #if defined(CPUARM)
void menuGeneralCustomFunctions(uint8_t event) void menuGeneralCustomFunctions(uint8_t event)
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
MenuHandlerFunc menuHandlers[5]; MenuHandlerFunc menuHandlers[5];
uint8_t menuEvent = 0; uint8_t menuEvent = 0;
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
uint8_t s_curveChan; uint8_t s_curveChan;
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void displayFlightModes(coord_t x, coord_t y, FlightModesType value) void displayFlightModes(coord_t x, coord_t y, FlightModesType value)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define EXPO_ONE_2ND_COLUMN (7*FW+3*FW+2) #define EXPO_ONE_2ND_COLUMN (7*FW+3*FW+2)
#define EXPO_ONE_FM_WIDTH (5*FW) #define EXPO_ONE_FM_WIDTH (5*FW)
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
enum LogicalSwitchFields { enum LogicalSwitchFields {
LS_FIELD_FUNCTION, LS_FIELD_FUNCTION,
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
bool isThrottleOutput(uint8_t ch) bool isThrottleOutput(uint8_t ch)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define MODELSIZE_POS_X 170 #define MODELSIZE_POS_X 170
#define MODELSEL_W LCD_W #define MODELSEL_W LCD_W
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void menuModelTemplates(uint8_t event) void menuModelTemplates(uint8_t event)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void menuGeneralDiagAna(uint8_t event) void menuGeneralDiagAna(uint8_t event)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void displayKeyState(uint8_t x, uint8_t y, EnumKeys key) void displayKeyState(uint8_t x, uint8_t y, EnumKeys key)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
enum menuGeneralHwItems { enum menuGeneralHwItems {
ITEM_SETUP_HW_OPTREX_DISPLAY, ITEM_SETUP_HW_OPTREX_DISPLAY,
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void menuGeneralSdManagerInfo(uint8_t event) void menuGeneralSdManagerInfo(uint8_t event)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void menuGeneralVersion(uint8_t event) void menuGeneralVersion(uint8_t event)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define STATUS_BAR_Y (7*FH+1) #define STATUS_BAR_Y (7*FH+1)
#define TELEM_2ND_COLUMN (10*FW) #define TELEM_2ND_COLUMN (10*FW)
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define TEXT_FILENAME_MAXLEN 40 #define TEXT_FILENAME_MAXLEN 40
#define TEXT_FILE_MAXSIZE 2048 #define TEXT_FILE_MAXSIZE 2048
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void drawStick(coord_t centrex, int16_t xval, int16_t yval) void drawStick(coord_t centrex, int16_t xval, int16_t yval)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#if defined(SPLASH) #if defined(SPLASH)
const pm_uchar splashdata[] PROGMEM = { const pm_uchar splashdata[] PROGMEM = {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
coord_t getCurveYCoord(FnFuncP fn, int x, int width) coord_t getCurveYCoord(FnFuncP fn, int x, int width)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void onGVARSMenu(const char *result) void onGVARSMenu(const char *result)
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
enum menuModelHeliItems { enum menuModelHeliItems {
ITEM_HELI_SWASHTYPE, ITEM_HELI_SWASHTYPE,
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define TRAINER_COLUMN_WIDTH 60 #define TRAINER_COLUMN_WIDTH 60
#define TRAINER_COLUMN_1 MENUS_MARGIN_LEFT+80 #define TRAINER_COLUMN_1 MENUS_MARGIN_LEFT+80
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
enum AboutScreens { enum AboutScreens {
ABOUT_OPENTX, ABOUT_OPENTX,
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
uint16_t nextMixerEndTime = 0; uint16_t nextMixerEndTime = 0;
#define SCHEDULE_MIXER_END(delay) nextMixerEndTime = getTmr16KHz() + (delay) - 2*16/*2ms*/ #define SCHEDULE_MIXER_END(delay) nextMixerEndTime = getTmr16KHz() + (delay) - 2*16/*2ms*/
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
uint8_t storageDirtyMsk; uint8_t storageDirtyMsk;
tmr10ms_t storageDirtyTime10ms; tmr10ms_t storageDirtyTime10ms;
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define ADC_VREF_TYPE (1 << REFS0) // AVCC with external capacitor at AREF pin #define ADC_VREF_TYPE (1 << REFS0) // AVCC with external capacitor at AREF pin
+22 -22
View File
@@ -1,28 +1,28 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/* RTC controls */ /* RTC controls */
#include "../opentx.h" #include "opentx.h"
#include "../FatFs/integer.h" #include "FatFs/integer.h"
typedef struct { typedef struct {
WORD year; /* 2000..2099 */ WORD year; /* 2000..2099 */
+1 -1
View File
@@ -27,7 +27,7 @@
old DSM2 code) which seemed to much for the interrupt. old DSM2 code) which seemed to much for the interrupt.
*/ */
#include "../../opentx.h" #include "opentx.h"
// Start and stop bits need to be 2ms in duration. Start bit is low, stop bit is high // Start and stop bits need to be 2ms in duration. Start bit is low, stop bit is high
#define SOMOSSBIT 5 //The 2ms of a stop/start bit #define SOMOSSBIT 5 //The 2ms of a stop/start bit
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#if !defined(SIMU) #if !defined(SIMU)
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void hapticOff(void) void hapticOff(void)
{ {
+1 -1
View File
@@ -20,7 +20,7 @@
// driver adapted from somo14d driver for gruvin9x board for driving WTV20SDMini module // driver adapted from somo14d driver for gruvin9x board for driving WTV20SDMini module
#include "../../opentx.h" #include "opentx.h"
// Start and stop bits need to be 2ms in duration. Start bit is low, stop bit is high // Start and stop bits need to be 2ms in duration. Start bit is low, stop bit is high
#define WTV20SD_STOP_TIME 68 // This is the needed 2ms (4) + 30ms (60) to allow for the #define WTV20SD_STOP_TIME 68 // This is the needed 2ms (4) + 30ms (60) to allow for the
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
const int8_t volumeScale[VOLUME_LEVEL_MAX+1] = const int8_t volumeScale[VOLUME_LEVEL_MAX+1] =
{ {
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
void btSetBaudrate(uint32_t index) void btSetBaudrate(uint32_t index)
{ {
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
volatile uint8_t buzzerCount ; volatile uint8_t buzzerCount ;
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
int8_t volumeRequired ; int8_t volumeRequired ;
uint8_t coprocReadDataPending ; uint8_t coprocReadDataPending ;
+1 -1
View File
@@ -25,7 +25,7 @@
/* are platform dependent. */ /* are platform dependent. */
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/
#include "../../opentx.h" #include "opentx.h"
#include "diskio.h" #include "diskio.h"
#define CARD_TYPE_bmHC (1 << 0) /**< Bit for High-Capacity(Density) */ #define CARD_TYPE_bmHC (1 << 0) /**< Bit for High-Capacity(Density) */
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
volatile uint32_t Spi_complete; volatile uint32_t Spi_complete;
uint8_t Spi_tx_buf[24] ; uint8_t Spi_tx_buf[24] ;
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
uint32_t (*IAP_Function)(uint32_t, uint32_t); uint32_t (*IAP_Function)(uint32_t, uint32_t);
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void hapticOff() void hapticOff()
{ {
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
// keys: // keys:
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
void rotencInit() void rotencInit()
{ {
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#if defined(REVX) #if defined(REVX)
// TODO change this, not the right place // TODO change this, not the right place
+22 -22
View File
@@ -1,25 +1,25 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define MCI_INITIAL_SPEED 400000 #define MCI_INITIAL_SPEED 400000
void init_SDcard() void init_SDcard()
+21 -21
View File
@@ -1,24 +1,24 @@
/* /*
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#include <stdarg.h> #include <stdarg.h>
/** Usart Hw interface used by the console (UART0). */ /** Usart Hw interface used by the console (UART0). */
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define RX_UART_BUFFER_SIZE 128 #define RX_UART_BUFFER_SIZE 128
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
Fifo<uint8_t, 64> btTxFifo; Fifo<uint8_t, 64> btTxFifo;
Fifo<uint8_t, 64> btRxFifo; Fifo<uint8_t, 64> btRxFifo;
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
//After reset, write is not allowed in the Flash control register (FLASH_CR) to protect the //After reset, write is not allowed in the Flash control register (FLASH_CR) to protect the
//Flash memory against possible unwanted operations due, for example, to electric //Flash memory against possible unwanted operations due, for example, to electric
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
#define CS1_HIGH() TOPLCD_GPIO->BSRRL = TOPLCD_GPIO_PIN_CS1 #define CS1_HIGH() TOPLCD_GPIO->BSRRL = TOPLCD_GPIO_PIN_CS1
#define CS1_LOW() TOPLCD_GPIO->BSRRH = TOPLCD_GPIO_PIN_CS1 #define CS1_LOW() TOPLCD_GPIO->BSRRH = TOPLCD_GPIO_PIN_CS1
+1 -1
View File
@@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../opentx.h" #include "opentx.h"
#if defined(FRSKY_HUB) #if defined(FRSKY_HUB)
void parseTelemHubByte(uint8_t byte) void parseTelemHubByte(uint8_t byte)
+1 -1
View File
@@ -20,7 +20,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum CzechPrompts { enum CzechPrompts {
CZ_PROMPT_NUMBERS_BASE = 0, CZ_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -22,7 +22,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum GermanPrompts { enum GermanPrompts {
DE_PROMPT_NUMBERS_BASE = 0, DE_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -34,7 +34,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum EnglishPrompts { enum EnglishPrompts {
EN_PROMPT_NUMBERS_BASE = 0, EN_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -34,7 +34,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum SpanishPrompts { enum SpanishPrompts {
ES_PROMPT_NUMBERS_BASE = 0, ES_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -34,7 +34,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum HungarianPrompts { enum HungarianPrompts {
HU_PROMPT_NUMBERS_BASE = 0, HU_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -20,7 +20,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum ItalianPrompts { enum ItalianPrompts {
IT_PROMPT_NUMBERS_BASE = 0, IT_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -21,7 +21,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum DutchPrompts { enum DutchPrompts {
NL_PROMPT_NUMBERS_BASE = 0, NL_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -20,7 +20,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum PolishPrompts { enum PolishPrompts {
PL_PROMPT_NUMBERS_BASE = 0, PL_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -34,7 +34,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum PortuguesePrompts { enum PortuguesePrompts {
PT_PROMPT_NUMBERS_BASE = 0, PT_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -35,7 +35,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum SwedishPrompts { enum SwedishPrompts {
SE_PROMPT_NUMBERS_BASE = 0, SE_PROMPT_NUMBERS_BASE = 0,
+1 -1
View File
@@ -35,7 +35,7 @@
* *
*/ */
#include "../opentx.h" #include "opentx.h"
enum SlovakPrompts { enum SlovakPrompts {
SK_PROMPT_NUMBERS_BASE = 0, SK_PROMPT_NUMBERS_BASE = 0,