RT-Thread Device Interface */
| 359 | |
| 360 | /* RT-Thread Device Interface */ |
| 361 | static rt_err_t rtgui_touch_init (rt_device_t dev) |
| 362 | { |
| 363 | rt_uint8_t send; |
| 364 | rt_uint8_t recv_buffer[2]; |
| 365 | struct rtgui_touch_device * touch_device = (struct rtgui_touch_device *)dev; |
| 366 | |
| 367 | touch_init(); |
| 368 | rt_kprintf("touch_init ...\n"); |
| 369 | send = START | DIFFERENTIAL | POWER_MODE0; |
| 370 | touch_send_then_recv(touch->spi_device, &send, 1, recv_buffer, 2); |
| 371 | |
| 372 | return RT_EOK; |
| 373 | } |
| 374 | |
| 375 | static rt_err_t rtgui_touch_control (rt_device_t dev, int cmd, void *args) |
| 376 | { |
nothing calls this directly
no test coverage detected