Commit aabe6a7 yuanjie
committed
1 parent a1fb2d8 commit aabe6a7 Copy full SHA for aabe6a7
File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 15
15
#define DBG_LVL DBG_LOG
16
16
#include <rtdbg.h>
17
17
18
- #ifdef PKG_USING_LCD
18
+ #ifdef VDEVICE_USING_LCD
19
19
20
20
#define LCD_USING_RGB565
21
21
//#define LCD_USING_RGB888
@@ -144,6 +144,8 @@ const static struct rt_device_ops _lcd_ops =
144
144
_lcd_init ,
145
145
_lcd_open ,
146
146
_lcd_close ,
147
+ RT_NULL ,
148
+ RT_NULL ,
147
149
_lcd_control
148
150
};
149
151
#endif
@@ -168,6 +170,8 @@ int rt_hw_lcd_init(void)
168
170
lcd_dev .init = _lcd_init ;
169
171
lcd_dev .open = _lcd_open ;
170
172
lcd_dev .close = _lcd_close ;
173
+ lcd_dev .read = RT_NULL ;
174
+ lcd_dev .write = RT_NULL ;
171
175
lcd_dev .control = _lcd_control ;
172
176
#endif
173
177
@@ -180,4 +184,4 @@ int rt_hw_lcd_init(void)
180
184
}
181
185
INIT_DEVICE_EXPORT (rt_hw_lcd_init );
182
186
183
- #endif /* PKG_USING_LCD */
187
+ #endif /* VDEVICE_USING_LCD */
Original file line number Diff line number Diff line change 10
10
11
11
#include "rtconfig.h"
12
12
13
- #ifdef PKG_USING_TOUCH
13
+ #ifdef VDEVICE_USING_TOUCH
14
14
15
15
#include <rtthread.h>
16
16
#include <rtdevice.h>
@@ -138,4 +138,4 @@ static int rt_hw_touch_init(void)
138
138
}
139
139
INIT_DEVICE_EXPORT (rt_hw_touch_init );
140
140
141
- #endif /* PKG_USING_TOUCH */
141
+ #endif /* VDEVICE_USING_TOUCH */
You can’t perform that action at this time.
0 commit comments