From 64829a07ba6464ada6f463f204d895c68cfb6b80 Mon Sep 17 00:00:00 2001 From: sundm75 Date: Sat, 17 Mar 2018 19:06:43 +0800 Subject: [PATCH] [bsp][ls1c] add the condition for use touch --- bsp/ls1cdev/drivers/touch.c | 8 ++++++-- 1 file 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 +#include #include #include #include "ls1c.h" @@ -30,9 +32,9 @@ #include "drv_spi.h" #include "touch.h" +#ifdef RT_USING_RTGUI + #include -#include -#include #include #include #include @@ -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