Browse Source

[qemu][lvgl]移除无用的定义和对外声明

Meco Man 3 years ago
parent
commit
a8796abdc2

+ 1 - 2
bsp/qemu-vexpress-a9/drivers/lvgl/SConscript

@@ -5,7 +5,6 @@ cwd = GetCurrentDir()
 group = []
 group = []
 src = Glob('*.c')
 src = Glob('*.c')
 CPPPATH = [cwd]
 CPPPATH = [cwd]
-CPPDEFINES = ['STM32F4']
 
 
 list = os.listdir(cwd)
 list = os.listdir(cwd)
 for d in list:
 for d in list:
@@ -13,6 +12,6 @@ for d in list:
     if os.path.isfile(os.path.join(path, 'SConscript')):
     if os.path.isfile(os.path.join(path, 'SConscript')):
         group = group + SConscript(os.path.join(d, 'SConscript'))
         group = group + SConscript(os.path.join(d, 'SConscript'))
 
 
-group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
+group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
 
 
 Return('group')
 Return('group')

+ 0 - 5
bsp/qemu-vexpress-a9/drivers/lvgl/lv_port_indev.h

@@ -14,12 +14,7 @@
 extern "C" {
 extern "C" {
 #endif
 #endif
 
 
-#include <lv_hal_indev.h>
-
-extern lv_indev_t * button_indev;
-
 void lv_port_indev_init(void);
 void lv_port_indev_init(void);
-void lv_port_indev_input(rt_int16_t x, rt_int16_t y, lv_indev_state_t state);
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 } /*extern "C"*/
 } /*extern "C"*/