@@ -11,7 +11,11 @@
#ifndef _FT6236_H_
#define _FT6236_H_
-#include "touch.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_ft6236_init(const char *name, struct rt_touch_config *cfg, rt_base_t pin);
@@ -10,7 +10,13 @@
#include <rtthread.h>
#include <rtdevice.h>
+
#define DBG_TAG "ft6236"
#define DBG_LVL DBG_LOG