fix: X10 compilation

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 01cd771410
commit a27e026699
7 changed files with 32 additions and 7 deletions
+4
View File
@@ -19,6 +19,10 @@
* GNU General Public License for more details.
*/
#pragma once
#include "popups.h"
enum BluetoothStates {
#if defined(PCBX9E)
BLUETOOTH_INIT,
+1 -1
View File
@@ -95,7 +95,7 @@ RadioHardwarePage::RadioHardwarePage():
class ModeChoice : public Choice
{
public:
ModeChoice(FormGroup *parent, const rect_t &rect, const char *values,
ModeChoice(FormGroup *parent, const rect_t &rect, const char **values,
int vmin, int vmax, std::function<int()> getValue,
std::function<void(int)> setValue = nullptr,
bool *menuOpen = nullptr) :
+4
View File
@@ -27,6 +27,10 @@
#include "button.h"
#include "numberedit.h"
#if defined(BLUETOOTH)
#include "bluetooth.h"
#endif
class TrChoice;
class TrainerModuleWindow : public FormGroup
+15 -5
View File
@@ -173,11 +173,21 @@
/*Must be defined to include path of CMSIS header of target processor
e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
#define LV_GPU_DMA2D_CMSIS_INCLUDE "stm32f4xx.h"
#define DMA2D_NLR_PL_Pos 16
#define DMA2D_NLR_NL_Pos 0
#define DMA2D_CR_START_Msk DMA2D_CR_START
#define DMA2D_FGPFCCR_AM_Pos 16
#define DMA2D_FGPFCCR_ALPHA_Pos 24
#if !defined(DMA2D_NLR_PL_Pos)
#define DMA2D_NLR_PL_Pos 16
#endif
#if !defined(DMA2D_NLR_NL_Pos)
#define DMA2D_NLR_NL_Pos 0
#endif
#if !defined(DMA2D_CR_START_Msk)
#define DMA2D_CR_START_Msk DMA2D_CR_START
#endif
#if !defined(DMA2D_FGPFCCR_AM_Pos)
#define DMA2D_FGPFCCR_AM_Pos 16
#endif
#if !defined(DMA2D_FGPFCCR_ALPHA_Pos)
#define DMA2D_FGPFCCR_ALPHA_Pos 24
#endif
#endif
/*Use NXP's PXP GPU iMX RTxxx platforms*/
@@ -23,6 +23,9 @@
#include "debug.h"
#if !defined(BOOT)
#include "fifo.h"
Fifo<uint8_t, BT_TX_FIFO_SIZE> btTxFifo;
Fifo<uint8_t, BT_RX_FIFO_SIZE> btRxFifo;
+4
View File
@@ -64,6 +64,10 @@ void watchdogInit(unsigned int duration)
}
#if HAS_SPORT_UPDATE_CONNECTOR() && !defined(BOOT)
// g_eeGeneral
#include "opentx.h"
void sportUpdateInit()
{
GPIO_InitTypeDef GPIO_InitStructure;