Skip to content

Commit aabe6a7

Browse files
author
yuanjie
committed
[fix] virtual device bug and name fix.
1 parent a1fb2d8 commit aabe6a7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

vlcd.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define DBG_LVL DBG_LOG
1616
#include <rtdbg.h>
1717

18-
#ifdef PKG_USING_LCD
18+
#ifdef VDEVICE_USING_LCD
1919

2020
#define LCD_USING_RGB565
2121
//#define LCD_USING_RGB888
@@ -144,6 +144,8 @@ const static struct rt_device_ops _lcd_ops =
144144
_lcd_init,
145145
_lcd_open,
146146
_lcd_close,
147+
RT_NULL,
148+
RT_NULL,
147149
_lcd_control
148150
};
149151
#endif
@@ -168,6 +170,8 @@ int rt_hw_lcd_init(void)
168170
lcd_dev.init = _lcd_init;
169171
lcd_dev.open = _lcd_open;
170172
lcd_dev.close = _lcd_close;
173+
lcd_dev.read = RT_NULL;
174+
lcd_dev.write = RT_NULL;
171175
lcd_dev.control = _lcd_control;
172176
#endif
173177

@@ -180,4 +184,4 @@ int rt_hw_lcd_init(void)
180184
}
181185
INIT_DEVICE_EXPORT(rt_hw_lcd_init);
182186

183-
#endif /* PKG_USING_LCD */
187+
#endif /* VDEVICE_USING_LCD */

vtouch.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "rtconfig.h"
1212

13-
#ifdef PKG_USING_TOUCH
13+
#ifdef VDEVICE_USING_TOUCH
1414

1515
#include <rtthread.h>
1616
#include <rtdevice.h>
@@ -138,4 +138,4 @@ static int rt_hw_touch_init(void)
138138
}
139139
INIT_DEVICE_EXPORT(rt_hw_touch_init);
140140

141-
#endif /* PKG_USING_TOUCH */
141+
#endif /* VDEVICE_USING_TOUCH */

0 commit comments

Comments
 (0)