@@ -11,7 +11,11 @@
#ifndef _FT6206_H_
#define _FT6206_H_
+#if defined(RT_VERSION_CHECK) && (RTTHREAD_VERSION >= RT_VERSION_CHECK(4, 1, 1))
+#include <rtdevice.h>
+#else
#include <touch.h>
+#endif
int rt_hw_ft6206_init(const char *name, struct rt_touch_config *cfg);
@@ -9,8 +9,14 @@
*/
#include <rtthread.h>
+
#include <rtdevice.h>
-#include "touch.h"
+#include <touch.h>
#include <string.h>
#define DBG_TAG "ft6206"