未验证 提交 b0c247fb 编写于 作者: Y yangjie11 提交者: GitHub

[components/drivers][touch]删除多余的touch.h (#7090)

* [components/drivers][touch]删除多余的touch.h

* 将touc.h替换为rtdevice.h
上级 6095d656
......@@ -12,7 +12,6 @@
#include <stddef.h>
#include "rtthread.h"
#include "rtdevice.h"
#include <touch.h>
#define TOUCH_POLL_MODE (1 << 0)
#define TOUCH_INT_MODE (1 << 1)
......
......@@ -13,7 +13,6 @@
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <touch.h>
#include "drv_touch.h"
#include "string.h"
#include "drv_pin.h"
......
......@@ -17,7 +17,7 @@
#include "nu_adc.h"
#if defined(BSP_USING_ADC_TOUCH)
#include "touch.h"
#include <rtdevice.h>
#endif
typedef enum
......
......@@ -17,7 +17,7 @@
#include "nu_adc.h"
#if defined(BSP_USING_ADC_TOUCH)
#include "touch.h"
#include <rtdevice.h>
#endif
typedef enum
......
......@@ -20,7 +20,6 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include "touch.h"
//#include "drv_adc.h"
#include "adc_touch.h"
......
......@@ -14,7 +14,6 @@
#if defined(NU_PKG_USING_ADC_TOUCH_SW)
#include "rtdevice.h"
#include "touch.h"
#include "touch_sw.h"
/* Private define ---------------------------------------------------------------*/
......
......@@ -14,7 +14,7 @@
#define __TOUCH_SW_H__
#include <rtthread.h>
#include "touch.h"
#include <rtdevice.h>
typedef enum
{
......
......@@ -11,7 +11,7 @@
#ifndef __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);
......
......@@ -11,7 +11,7 @@
#ifndef __FT5446_H__
#define __FT5446_H__
#include "touch.h"
#include <rtdevice.h>
#define FT_REGITER_LEN 1
#define FT_MAX_TOUCH 5
......
......@@ -16,7 +16,6 @@
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#include "touch.h"
#include "gt911.h"
static struct rt_i2c_client gt911_client;
......
......@@ -11,7 +11,7 @@
#ifndef __GT911_H__
#define __GT911_H__
#include "touch.h"
#include <rtdevice.h>
#define GT911_ADDR_LEN 2
#define GT911_REGITER_LEN 2
......
......@@ -11,7 +11,7 @@
#ifndef __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);
......
......@@ -11,7 +11,7 @@
#ifndef __ST1663I_H__
#define __ST1663I_H__
#include "touch.h"
#include <rtdevice.h>
#define ST_REGITER_LEN 1
#define ST_MAX_TOUCH 5
......
......@@ -10,7 +10,6 @@
#include <rtthread.h>
#include <rtdevice.h>
#include "touch.h"
#define THREAD_PRIORITY 5
#define THREAD_STACK_SIZE 2048
......
......@@ -17,7 +17,7 @@
#include "nu_adc.h"
#if defined(BSP_USING_ADC_TOUCH)
#include "touch.h"
#include <rtdevice.h>
#endif
typedef enum
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -11,7 +11,6 @@
#include <lvgl.h>
#include <stdbool.h>
#include <rtdevice.h>
#include "touch.h"
static lv_indev_state_t last_state = LV_INDEV_STATE_REL;
static rt_int16_t last_x = 0;
......
......@@ -9,7 +9,6 @@
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <touch.h>
#include "mbox.h"
#include "drv_dsi_touch.h"
......
......@@ -10,7 +10,6 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <touch.h>
#include "drv_xpt2046.h"
//http://www.lcdwiki.com/MHS-3.5inch_RPi_Display
......
......@@ -13,7 +13,6 @@
#include <rtthread.h>
#include <rtdevice.h>
#include "touch.h"
#ifdef BSP_USING_TOUCH_RES
......
......@@ -10,7 +10,6 @@
*/
#include <lvgl.h>
#include <rtdevice.h>
#include <touch.h>
#include <lcd_port.h>
#define DBG_TAG "LVGL.port.indev"
......
......@@ -8,7 +8,7 @@
* 2019-05-20 tyustli the first version
*/
#include "touch.h"
#include <rtdevice.h>
#include <string.h>
#define DBG_TAG "touch"
......
/*
* 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>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册