Compilation fix
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
* Contains the menu specific code for Mavlink support.
|
* Contains the menu specific code for Mavlink support.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../9x/view_mavlink.h"
|
#include "9x/view_mavlink.h"
|
||||||
|
|
||||||
// Globals declaration
|
// Globals declaration
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
#ifndef _VIEW_MAVLINK_H_
|
#ifndef _VIEW_MAVLINK_H_
|
||||||
#define _VIEW_MAVLINK_H_
|
#define _VIEW_MAVLINK_H_
|
||||||
|
|
||||||
#include "../9x/menus.h"
|
#include "menus.h"
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
#include "telemetry/mavlink.h"
|
#include "telemetry/mavlink.h"
|
||||||
#include "targets/common_avr/serial_driver.h"
|
#include "targets/common_avr/serial_driver.h"
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../taranis/lcd.h"
|
#include "lcd.h"
|
||||||
#include "../taranis/menus.h"
|
#include "menus.h"
|
||||||
|
|
||||||
#define DEFAULT_SCROLLBAR_X (LCD_W-1)
|
#define DEFAULT_SCROLLBAR_X (LCD_W-1)
|
||||||
#define NUM_BODY_LINES (LCD_LINES-1)
|
#define NUM_BODY_LINES (LCD_LINES-1)
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ void lcdRefresh(void);
|
|||||||
void lcdDrawSolidFilledRectDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color);
|
void lcdDrawSolidFilledRectDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color);
|
||||||
void lcdDrawBitmapDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t * bitmap);
|
void lcdDrawBitmapDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t * bitmap);
|
||||||
void lcdStoreBackupBuffer(void);
|
void lcdStoreBackupBuffer(void);
|
||||||
bool lcdRestoreBackupBuffer(void);
|
int lcdRestoreBackupBuffer(void);
|
||||||
|
|
||||||
// Backlight driver
|
// Backlight driver
|
||||||
#define setBacklight(xx)
|
#define setBacklight(xx)
|
||||||
|
|||||||
@@ -519,11 +519,11 @@ void lcdStoreBackupBuffer()
|
|||||||
DMAcopy(src, dest, DISPLAY_BUFFER_SIZE);
|
DMAcopy(src, dest, DISPLAY_BUFFER_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lcdRestoreBackupBuffer()
|
int lcdRestoreBackupBuffer()
|
||||||
{
|
{
|
||||||
uint16_t * dest = (uint16_t *)CurrentFrameBuffer, * src = (uint16_t *)LCD_BACKUP_FRAME_BUFFER;
|
uint16_t * dest = (uint16_t *)CurrentFrameBuffer, * src = (uint16_t *)LCD_BACKUP_FRAME_BUFFER;
|
||||||
DMAcopy(src, dest, DISPLAY_BUFFER_SIZE);
|
DMAcopy(src, dest, DISPLAY_BUFFER_SIZE);
|
||||||
return true;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcdRefresh()
|
void lcdRefresh()
|
||||||
|
|||||||
@@ -1284,10 +1284,10 @@ void lcdStoreBackupBuffer()
|
|||||||
memcpy(simuLcdBackupBuf, displayBuf, sizeof(simuLcdBackupBuf));
|
memcpy(simuLcdBackupBuf, displayBuf, sizeof(simuLcdBackupBuf));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lcdRestoreBackupBuffer()
|
int lcdRestoreBackupBuffer()
|
||||||
{
|
{
|
||||||
memcpy(displayBuf, simuLcdBackupBuf, sizeof(displayBuf));
|
memcpy(displayBuf, simuLcdBackupBuf, sizeof(displayBuf));
|
||||||
return true;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**********send command to lcd**************
|
**********send command to lcd**************
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "../../fifo.h"
|
#include "../../fifo.h"
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
Fifo<64> btTxFifo;
|
Fifo<64> btTxFifo;
|
||||||
Fifo<64> btRxFifo;
|
Fifo<64> btRxFifo;
|
||||||
|
|||||||
@@ -78,13 +78,13 @@ extern "C" {
|
|||||||
#include "usbd_msc_core.h"
|
#include "usbd_msc_core.h"
|
||||||
#include "usbd_hid_core.h"
|
#include "usbd_hid_core.h"
|
||||||
#include "usbd_usr.h"
|
#include "usbd_usr.h"
|
||||||
#include "../taranis/usbd_desc.h"
|
#include "usbd_desc.h"
|
||||||
#include "../taranis/usb_conf.h"
|
#include "usb_conf.h"
|
||||||
#include "../taranis/usbd_conf.h"
|
#include "usbd_conf.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../taranis/hal.h"
|
#include "hal.h"
|
||||||
#include "../taranis/aspi.h"
|
#include "aspi.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) && !defined(SIMU)
|
#if defined(__cplusplus) && !defined(SIMU)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
void delaysInit(void)
|
void delaysInit(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
#include "../../thirdparty/FatFs/ff.h"
|
#include "../../thirdparty/FatFs/ff.h"
|
||||||
#include "../../thirdparty/CoOS/kernel/CoOS.h"
|
#include "../../thirdparty/CoOS/kernel/CoOS.h"
|
||||||
#include "../../debug.h"
|
#include "../../debug.h"
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
#include "../Taranis/hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
/* Definitions for MMC/SDC command */
|
/* Definitions for MMC/SDC command */
|
||||||
#define CMD0 (0x40+0) /* GO_IDLE_STATE */
|
#define CMD0 (0x40+0) /* GO_IDLE_STATE */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
void eepromPageWrite(uint8_t* pBuffer, uint16_t WriteAddr, uint8_t NumByteToWrite);
|
void eepromPageWrite(uint8_t* pBuffer, uint16_t WriteAddr, uint8_t NumByteToWrite);
|
||||||
void eepromWaitEepromStandbyState(void);
|
void eepromWaitEepromStandbyState(void);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../pwr.h"
|
#include "../../pwr.h"
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
void pwrInit()
|
void pwrInit()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.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
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "usb_bsp.h"
|
#include "usb_bsp.h"
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
#include "../taranis/usbd_conf.h"
|
#include "usbd_conf.h"
|
||||||
|
|
||||||
extern uint32_t SystemCoreClock;
|
extern uint32_t SystemCoreClock;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.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_dcd_int.h"
|
||||||
|
|
||||||
int usbPlugged(void)
|
int usbPlugged(void)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../taranis/usb_conf.h"
|
#include "usb_conf.h"
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
/* Private define ------------------------------------------------------------*/
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#define __USBD_CONF__H__
|
#define __USBD_CONF__H__
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../taranis/usb_conf.h"
|
#include "usb_conf.h"
|
||||||
|
|
||||||
#define USBD_CFG_MAX_NUM 1
|
#define USBD_CFG_MAX_NUM 1
|
||||||
#define USBD_ITF_MAX_NUM 1
|
#define USBD_ITF_MAX_NUM 1
|
||||||
|
|||||||
@@ -26,12 +26,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../taranis/usbd_desc.h"
|
#include "usbd_desc.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
#include "../taranis/usbd_conf.h"
|
#include "usbd_conf.h"
|
||||||
#include "usbd_core.h"
|
#include "usbd_core.h"
|
||||||
#include "usbd_req.h"
|
#include "usbd_req.h"
|
||||||
#include "usb_regs.h"
|
#include "usb_regs.h"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../taranis/usbd_desc.h"
|
#include "usbd_desc.h"
|
||||||
#include "usbd_hid_core.h"
|
#include "usbd_hid_core.h"
|
||||||
#include "usbd_req.h"
|
#include "usbd_req.h"
|
||||||
|
|
||||||
|
|||||||
@@ -28,14 +28,14 @@
|
|||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../../opentx.h"
|
#include "../../opentx.h"
|
||||||
#include "../../thirdparty/FatFs/diskio.h"
|
#include "../../thirdparty/FatFs/diskio.h"
|
||||||
#include "../taranis/board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) && !defined(SIMU)
|
#if defined(__cplusplus) && !defined(SIMU)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "usbd_msc_mem.h"
|
#include "usbd_msc_mem.h"
|
||||||
#include "../taranis/usb_conf.h"
|
#include "usb_conf.h"
|
||||||
|
|
||||||
#if defined(BOOT)
|
#if defined(BOOT)
|
||||||
#define STORAGE_LUN_NBR 2
|
#define STORAGE_LUN_NBR 2
|
||||||
|
|||||||
Reference in New Issue
Block a user