summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorsundm75 <[email protected]>2018-03-17 19:06:43 +0800
committersundm75 <[email protected]>2018-03-17 19:06:43 +0800
commit64829a07ba6464ada6f463f204d895c68cfb6b80 (patch)
tree7df465b99e2116e2fb1acb0dd727d45f31170b2c /bsp
parentaf743afb019c47d524bef28956cf316a4442d5ab (diff)
[bsp][ls1c] add the condition for use touch
Diffstat (limited to 'bsp')
-rw-r--r--bsp/ls1cdev/drivers/touch.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bsp/ls1cdev/drivers/touch.c b/bsp/ls1cdev/drivers/touch.c
index 5172b7a359..249e7682bf 100644
--- a/bsp/ls1cdev/drivers/touch.c
+++ b/bsp/ls1cdev/drivers/touch.c
@@ -22,6 +22,8 @@
* 2017-12-30 Sundm75 first version
*/
+#include <rtthread.h>
+#include <rtdevice.h>
#include <stdbool.h>
#include <drivers/spi.h>
#include "ls1c.h"
@@ -30,9 +32,9 @@
#include "drv_spi.h"
#include "touch.h"
+#ifdef RT_USING_RTGUI
+
#include <rtgui/calibration.h>
-#include <rtthread.h>
-#include <rtdevice.h>
#include <rtgui/event.h>
#include <rtgui/kbddef.h>
#include <rtgui/rtgui_server.h>
@@ -605,3 +607,5 @@ rt_err_t rtgui_touch_hw_init(const char * spi_device_name)
rt_device_init((rt_device_t)touch);
return RT_EOK;
}
+
+#endif