Lines Matching refs:touch_device
271 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_st1663i_init() local
274 touch_device = (struct rt_touch_device *)rt_malloc(sizeof(struct rt_touch_device)); in rt_hw_st1663i_init()
275 if (touch_device == RT_NULL) in rt_hw_st1663i_init()
280 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_st1663i_init()
323 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_st1663i_init()
324 touch_device->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in rt_hw_st1663i_init()
325 touch_device->info.range_x = BSP_LCD_WIDTH; in rt_hw_st1663i_init()
326 touch_device->info.range_y = BSP_LCD_HEIGHT; in rt_hw_st1663i_init()
327 touch_device->info.point_num = ST_MAX_TOUCH; in rt_hw_st1663i_init()
329 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_st1663i_init()
330 touch_device->ops = &st1663i_touch_ops; in rt_hw_st1663i_init()
332 rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL); in rt_hw_st1663i_init()