[components/drivers][touch]删除多余的touch.h (#7090)
* [components/drivers][touch]删除多余的touch.h * 将touc.h替换为rtdevice.h
This commit is contained in:
parent
6095d65679
commit
b0c247fb59
|
@ -12,7 +12,6 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "rtthread.h"
|
#include "rtthread.h"
|
||||||
#include "rtdevice.h"
|
#include "rtdevice.h"
|
||||||
#include <touch.h>
|
|
||||||
|
|
||||||
#define TOUCH_POLL_MODE (1 << 0)
|
#define TOUCH_POLL_MODE (1 << 0)
|
||||||
#define TOUCH_INT_MODE (1 << 1)
|
#define TOUCH_INT_MODE (1 << 1)
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
*/
|
*/
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <touch.h>
|
|
||||||
#include "drv_touch.h"
|
#include "drv_touch.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "drv_pin.h"
|
#include "drv_pin.h"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "nu_adc.h"
|
#include "nu_adc.h"
|
||||||
|
|
||||||
#if defined(BSP_USING_ADC_TOUCH)
|
#if defined(BSP_USING_ADC_TOUCH)
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "nu_adc.h"
|
#include "nu_adc.h"
|
||||||
|
|
||||||
#if defined(BSP_USING_ADC_TOUCH)
|
#if defined(BSP_USING_ADC_TOUCH)
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
#include "touch.h"
|
|
||||||
//#include "drv_adc.h"
|
//#include "drv_adc.h"
|
||||||
#include "adc_touch.h"
|
#include "adc_touch.h"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#if defined(NU_PKG_USING_ADC_TOUCH_SW)
|
#if defined(NU_PKG_USING_ADC_TOUCH_SW)
|
||||||
|
|
||||||
#include "rtdevice.h"
|
#include "rtdevice.h"
|
||||||
#include "touch.h"
|
|
||||||
#include "touch_sw.h"
|
#include "touch_sw.h"
|
||||||
|
|
||||||
/* Private define ---------------------------------------------------------------*/
|
/* Private define ---------------------------------------------------------------*/
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#define __TOUCH_SW_H__
|
#define __TOUCH_SW_H__
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef __ILI_H__
|
#ifndef __ILI_H__
|
||||||
#define __ILI_H__
|
#define __ILI_H__
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
int rt_hw_ili_tpc_init(const char *name, struct rt_touch_config *cfg);
|
int rt_hw_ili_tpc_init(const char *name, struct rt_touch_config *cfg);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef __FT5446_H__
|
#ifndef __FT5446_H__
|
||||||
#define __FT5446_H__
|
#define __FT5446_H__
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
#define FT_REGITER_LEN 1
|
#define FT_REGITER_LEN 1
|
||||||
#define FT_MAX_TOUCH 5
|
#define FT_MAX_TOUCH 5
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
|
|
||||||
#include "touch.h"
|
|
||||||
#include "gt911.h"
|
#include "gt911.h"
|
||||||
|
|
||||||
static struct rt_i2c_client gt911_client;
|
static struct rt_i2c_client gt911_client;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef __GT911_H__
|
#ifndef __GT911_H__
|
||||||
#define __GT911_H__
|
#define __GT911_H__
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
#define GT911_ADDR_LEN 2
|
#define GT911_ADDR_LEN 2
|
||||||
#define GT911_REGITER_LEN 2
|
#define GT911_REGITER_LEN 2
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef __ILI_H__
|
#ifndef __ILI_H__
|
||||||
#define __ILI_H__
|
#define __ILI_H__
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
int rt_hw_ili_tpc_init(const char *name, struct rt_touch_config *cfg);
|
int rt_hw_ili_tpc_init(const char *name, struct rt_touch_config *cfg);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef __ST1663I_H__
|
#ifndef __ST1663I_H__
|
||||||
#define __ST1663I_H__
|
#define __ST1663I_H__
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
|
|
||||||
#define ST_REGITER_LEN 1
|
#define ST_REGITER_LEN 1
|
||||||
#define ST_MAX_TOUCH 5
|
#define ST_MAX_TOUCH 5
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
#define THREAD_PRIORITY 5
|
#define THREAD_PRIORITY 5
|
||||||
#define THREAD_STACK_SIZE 2048
|
#define THREAD_STACK_SIZE 2048
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "nu_adc.h"
|
#include "nu_adc.h"
|
||||||
|
|
||||||
#if defined(BSP_USING_ADC_TOUCH)
|
#if defined(BSP_USING_ADC_TOUCH)
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
|
||||||
static rt_int16_t last_x = 0;
|
static rt_int16_t last_x = 0;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
*/
|
*/
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <touch.h>
|
|
||||||
|
|
||||||
#include "mbox.h"
|
#include "mbox.h"
|
||||||
#include "drv_dsi_touch.h"
|
#include "drv_dsi_touch.h"
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <touch.h>
|
|
||||||
|
|
||||||
#include "drv_xpt2046.h"
|
#include "drv_xpt2046.h"
|
||||||
//http://www.lcdwiki.com/MHS-3.5inch_RPi_Display
|
//http://www.lcdwiki.com/MHS-3.5inch_RPi_Display
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include "touch.h"
|
|
||||||
|
|
||||||
#ifdef BSP_USING_TOUCH_RES
|
#ifdef BSP_USING_TOUCH_RES
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
*/
|
*/
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <touch.h>
|
|
||||||
#include <lcd_port.h>
|
#include <lcd_port.h>
|
||||||
|
|
||||||
#define DBG_TAG "LVGL.port.indev"
|
#define DBG_TAG "LVGL.port.indev"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* 2019-05-20 tyustli the first version
|
* 2019-05-20 tyustli the first version
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "touch.h"
|
#include <rtdevice.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define DBG_TAG "touch"
|
#define DBG_TAG "touch"
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*
|
|
||||||
* Change Logs:
|
|
||||||
* Date Author Notes
|
|
||||||
* 2019-05-20 tyustli the first version
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <rtthread.h>
|
|
||||||
#include <rtdevice.h>
|
|
Loading…
Reference in New Issue