guowenxue
2024-09-27 b64b1d3468ec020b1a0ec31dd93490196cedaf1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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