1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2017-12-30    Sundm75       first version
9  */
10  #ifndef __TOUCH_H__
11 #define __TOUCH_H__
12 
13 #define RT_TOUCH_NORMAL             0
14 #define RT_TOUCH_CALIBRATION_DATA   1
15 #define RT_TOUCH_CALIBRATION        2
16 
17 //#define SAVE_CALIBRATION
18 
19 
20 rt_uint16_t touch_read_x(void);
21 rt_uint16_t touch_read_y(void);
22 void touch_config(void);
23 
24 
25 rt_err_t rtgui_touch_hw_init(const char * spi_device_name);
26 
27 #endif
28 
29 
30