File tree 3 files changed +14
-10
lines changed
3 files changed +14
-10
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_PIN
18
+ #ifdef VDEVICE_USING_PIN
19
19
20
20
static void _pin_mode (struct rt_device * device , rt_base_t pin , rt_base_t mode )
21
21
{
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
22
22
23
- #define LCD_HEIGHT 360
24
- #define LCD_WIDTH 360
23
+ #define LCD_HEIGHT 240
24
+ #define LCD_WIDTH 240
25
25
26
26
#ifdef LCD_USING_RGB565
27
27
#define LCD_BITS_PER_PIXEL 16
35
35
36
36
#define LCD_FRAMEBUFFER_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
37
37
38
- rt_uint8_t lcd_framebuffer [LCD_FRAMEBUFFER_SIZE ];
38
+ static rt_uint8_t lcd_framebuffer [LCD_FRAMEBUFFER_SIZE ];
39
39
40
40
static struct rt_device_graphic_info lcd_info ;
41
41
static struct rt_device lcd_dev ;
@@ -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>
21
21
#define DBG_LVL DBG_LOG
22
22
#include <rtdbg.h>
23
23
24
- #define TOUCH_WIDTH 320 //resolution ratio config X
25
- #define TOUCH_HEIGHT 320 //resolution ratio config Y
24
+ #define TOUCH_WIDTH 240 //resolution ratio config X
25
+ #define TOUCH_HEIGHT 240 //resolution ratio config Y
26
26
#define TOUCH_POINT_NUM 1 //touchpoint number
27
27
28
28
static struct rt_touch_device touch_device ;
@@ -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