Fixed includes for touch screen.

Fixed buffer size for NV14.
This commit is contained in:
Jakub
2019-09-02 19:19:35 +02:00
parent 1c81618262
commit 45b0b1d3fd
2 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -20,10 +20,11 @@
#include "opentx.h" #include "opentx.h"
uint8_t LCD_FIRST_FRAME_BUFFER[DISPLAY_BUFFER_SIZE] __SDRAM;
uint8_t LCD_SECOND_FRAME_BUFFER[DISPLAY_BUFFER_SIZE] __SDRAM;
uint8_t LCD_BACKUP_FRAME_BUFFER[DISPLAY_BUFFER_SIZE] __SDRAM;
uint8_t LCD_FIRST_FRAME_BUFFER[DISPLAY_BUFFER_SIZE * sizeof(display_t)] __SDRAM;
uint8_t LCD_SECOND_FRAME_BUFFER[DISPLAY_BUFFER_SIZE * sizeof(display_t)] __SDRAM;
uint8_t LCD_BACKUP_FRAME_BUFFER[DISPLAY_BUFFER_SIZE * sizeof(display_t)] __SDRAM;
uint8_t currentLayer = LCD_FIRST_LAYER; uint8_t currentLayer = LCD_FIRST_LAYER;
lcdSpiInitFucPtr lcdSpiInitFuc; lcdSpiInitFucPtr lcdSpiInitFuc;
+3 -3
View File
@@ -38,8 +38,8 @@ static unsigned short TouchStartX;
static unsigned short TouchStartY; static unsigned short TouchStartY;
#include "ft6x06.h" #include "board.h"
#include "STM32F4xx_DSP_StdPeriph_Lib_V1.4.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_i2c.h" #include "touch_driver.h"
#define FT6x06_MAX_INSTANCE 1 #define FT6x06_MAX_INSTANCE 1
@@ -496,7 +496,7 @@ void handleTouch()
Ty = Tx; Ty = Tx;
Tx = x; Tx = x;
#endif #endif
if( 2 == TouchEvent ) if(TouchEvent == FT6206_TOUCH_EVT_FLAG_CONTACT)
{ {
touchState.X = Tx; touchState.X = Tx;
touchState.Y = Ty; touchState.Y = Ty;