diff -Nuar lv_drivers-8.0.1/CMakeLists.txt lv_drivers-8.0.1-imx6ull/CMakeLists.txt
|
--- lv_drivers-8.0.1/CMakeLists.txt 2021-06-14 19:54:20.000000000 +0800
|
+++ lv_drivers-8.0.1-imx6ull/CMakeLists.txt 2021-09-27 22:20:38.179997474 +0800
|
@@ -1,2 +1,5 @@
|
+set(CMAKE_C_COMPILER "/opt/buildroot/cortex-a7/bin/arm-linux-gcc")
|
+include_directories(..)
|
+
|
file(GLOB_RECURSE SOURCES ./*.c)
|
add_library(lv_drivers STATIC ${SOURCES})
|
diff -Nuar lv_drivers-8.0.1/indev/evdev.c lv_drivers-8.0.1-imx6ull/indev/evdev.c
|
--- lv_drivers-8.0.1/indev/evdev.c 2021-06-14 19:54:20.000000000 +0800
|
+++ lv_drivers-8.0.1-imx6ull/indev/evdev.c 2021-09-27 22:25:04.172002576 +0800
|
@@ -115,7 +115,7 @@
|
* @param data store the evdev data here
|
* @return false: because the points are not buffered, so no more data to be read
|
*/
|
-bool evdev_read(lv_indev_drv_t * drv, lv_indev_data_t * data)
|
+void evdev_read(lv_indev_drv_t * drv, lv_indev_data_t * data)
|
{
|
struct input_event in;
|
|
@@ -196,7 +196,7 @@
|
}
|
evdev_key_val = data->key;
|
evdev_button = data->state;
|
- return false;
|
+ return;
|
}
|
}
|
}
|
@@ -205,10 +205,10 @@
|
/* No data retrieved */
|
data->key = evdev_key_val;
|
data->state = evdev_button;
|
- return false;
|
+ return;
|
}
|
if(drv->type != LV_INDEV_TYPE_POINTER)
|
- return false;
|
+ return;
|
/*Store the collected data*/
|
|
#if EVDEV_CALIBRATE
|
@@ -225,12 +225,12 @@
|
data->point.x = 0;
|
if(data->point.y < 0)
|
data->point.y = 0;
|
- if(data->point.x >= drv->disp->driver.hor_res)
|
- data->point.x = drv->disp->driver.hor_res - 1;
|
- if(data->point.y >= drv->disp->driver.ver_res)
|
- data->point.y = drv->disp->driver.ver_res - 1;
|
+ if(data->point.x >= drv->disp->driver->hor_res)
|
+ data->point.x = drv->disp->driver->hor_res - 1;
|
+ if(data->point.y >= drv->disp->driver->ver_res)
|
+ data->point.y = drv->disp->driver->ver_res - 1;
|
|
- return false;
|
+ return;
|
}
|
|
/**********************
|
diff -Nuar lv_drivers-8.0.1/indev/evdev.h lv_drivers-8.0.1-imx6ull/indev/evdev.h
|
--- lv_drivers-8.0.1/indev/evdev.h 2021-06-14 19:54:20.000000000 +0800
|
+++ lv_drivers-8.0.1-imx6ull/indev/evdev.h 2021-09-27 22:25:33.424003137 +0800
|
@@ -57,7 +57,7 @@
|
* @param data store the evdev data here
|
* @return false: because the points are not buffered, so no more data to be read
|
*/
|
-bool evdev_read(lv_indev_drv_t * drv, lv_indev_data_t * data);
|
+void evdev_read(lv_indev_drv_t * drv, lv_indev_data_t * data);
|
|
|
/**********************
|
diff -Nuar lv_drivers-8.0.1/lv_drv_conf_template.h lv_drivers-8.0.1-imx6ull/lv_drv_conf_template.h
|
--- lv_drivers-8.0.1/lv_drv_conf_template.h 2021-06-14 19:54:20.000000000 +0800
|
+++ lv_drivers-8.0.1-imx6ull/lv_drv_conf_template.h 2021-09-27 22:20:38.183997474 +0800
|
@@ -7,7 +7,7 @@
|
* COPY THIS FILE AS lv_drv_conf.h
|
*/
|
|
-#if 0 /*Set it to "1" to enable the content*/
|
+#if 1 /*Set it to "1" to enable the content*/
|
|
#ifndef LV_DRV_CONF_H
|
#define LV_DRV_CONF_H
|
@@ -272,7 +272,7 @@
|
* Linux frame buffer device (/dev/fbx)
|
*-----------------------------------------*/
|
#ifndef USE_FBDEV
|
-# define USE_FBDEV 0
|
+# define USE_FBDEV 1
|
#endif
|
|
#if USE_FBDEV
|
@@ -386,7 +386,7 @@
|
* Mouse or touchpad as evdev interface (for Linux based systems)
|
*------------------------------------------------*/
|
#ifndef USE_EVDEV
|
-# define USE_EVDEV 0
|
+# define USE_EVDEV 1
|
#endif
|
|
#ifndef USE_BSD_EVDEV
|